Transcript Document

Final Project

You can choose one of the following
topics

Option 1: pH batch reactor simulation &
control




Details are included in phSimulation.doc
Ode23() & roots()
Option 2: Lottery model analysis
Hand-in:


Your source codes
Your report
Option 1: pH simulation &
Control
Experiment facilities:

Palancar, M. C. 1998
Acid flow, QA
Base flow, QB
C0, NaOH
C0, AcH C0, PrH
V, CAcH, CPrH, CNaOH
Outlet flow, Q
System

2 input streams

Acid stream:


Base steam:




Aqueous solution of acetic acid and propionic acid
Aqueous solution of sodium hydroxide
1 output stream
Controlled variable : pH value
Manipulated variable : base flow (Qb)
Titration curve

Eequivalence point is around pH 8.9
Goal


Construct a simulator to simulate the
pH neutralization
Try to control it

Setpoint changes:


from initial state to pH = 7
Disturbance rejection:

Qa increases
Option 2: Lottery model
analysis

Please collect the latest results of
lotteries and construct a model to
predict the numbers
Goal


You should collect the latest lottery numbers
(at least 50 groups) and stored them in a
lottery.txt file
Load the file and analyze them


Use figures to show the frequencies of each
number
Build your MAGIC model function for
predictions


You need to prepare the test data
You need to plot figures to show how it works