Index of /distillation/multicomp_araujo
From: Antonio Arauju
Date: 16 March 2008
Dear Sigurd,
I was playing around with the multicomA Matlab file and came up with the enclosed files. The model Stathis made is now fully vectorized (there was one nested "for" that was slowing down the computation); the same file now can be used for steady-state (using fmincon) and dynamic calculations (using some ode solver), interchangeably; and there's now a Simulink file of multicomA. In the Simulink file you have the advantage of changing the configuration more easily (D-B, L-V, etc.). Btw, there's no longer the need for the multicomA_lv.m file.
The precedence is:
1 ) main.m -> multicomA.m -> model.m -> parameters.m and steadystate.mat
2 ) sf_multicomA.m (Simulink level-2 m-file S-function) -> model -> parameters and steadystate.mat
In the Simulink file all variables are deviations from the steady state given in steadystate.mat.
Moreover, you can change all the parameters of the model by editing parameters.m.
I hope it can be of any use for the book home page.
Cheers,
Antonio.
21Mar2008
Dear Sigurd,
I updated the files on multicomA to include optimization. Check main.m for more information. I considered the usual cost function J = pV*VB + pF*F - pD*D - pB*B (cost.m) to be minimize. Constraints can be included in multicomA.m which is a multi-purpose function; it can be used by steady-state, optimization, and dynamic (including Simulink) calculations.
Cheers,
Antonio.