Files for generating the results of the Paper "Self-optimizing control and NCO tracking in the context or Real time optimization" by Johannes Jäschke and Sigurd Skogestad 2010 --------------------------------------------------------- Short howto 1. Run runSimpleCSTR.m to simulate the process using NCO tracking and SOC 2. change to the directory "Combined" 3. Run runSimpleCSTRCombi.m to simulate the process using NCO tracking in the upper layer, and SOC in the lower layer. -------------------------------------------------------- -------------------------------------------------------- Some more info The main folder contains the main file, runSimpleCSTR.m this file simulates operation of the CSTR using NCO tracking and self-optimizing control. The subfolder Combined containes the file runSimpleCSTRCombi.m. This file simulates operation of the CSTR using the combined structure with NCO tracking in the Top layer and self-optimizing control in the lower layer. To change the unexpected disturbance, adjust the values in the file d3.m. in the top folder and run first runSimpleCSTR.m and then runSimpleCSTRCombi.m -------------------------------------------------------- List of files: README This file runSimpleCSTR.m The main file dynModel.m simulates the CSTR in the NCO tr. procedure objfun.m evaluates the objective function d3.m set the unexpected disturbance dynModelSOC.m ode system to simulate the CSTR with SOC nonlincon.m model files for optimization (to find nominal optimum objfunFmincon.m objective function for fmincon used to find nominal optimum objfunSOC.m objective function for SOC operation scenario.m expected disturbance Scenario Subfolder: Combined/dynModel.m ODE set to simulate the lower layer with SOC Combined/objfun.m Evaluates the objective function Combined/runSimpleCSTRCombi.m The main file for the combined system Combined/scenario.m expected disturbance Scenario