/ Published in: MatLab
Expand |
Embed | Plain Text
% 10.10 Project % Spring 2011 % Jackie Simpson and Ben Frank %========================================================================== % Simulation || %========================================================================== function F = Simulator(X) %This function directs the sequential simulation of the processing units in %the process. % %INPUT: X--Vector of Optimization Variables % X(1) = ReactorHeater % X(2) = ReactionHeatingPeriod % X(3) = AmountSolvent %OUPUT: Global Variables global ReactorHeater ReactorHeatingPeriod AmountSolvent_S2 % %OUPUT: F - the value of the net operating profit % ReactorHeater = X(1); ReactorHeatingPeriod = X(2); AmountSolvent_S2 = X(3); % %:::::::::::::::::::::::::::::::::::::::::::: % 2A1-Simulate Batch Reactor : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Reactor; %:::::::::::::::::::::::::::::::::::::::::::: % 2A2-Simulate Batch Extractor : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Extractor; %:::::::::::::::::::::::::::::::::::::::::::: % 2A3-Simulate Batch Distillation : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Distillation %:::::::::::::::::::::::::::::::::::::::::::: % 2A4-Simulate Batch Crystallizer : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Crystallizer %:::::::::::::::::::::::::::::::::::::::::::: % 2A5-Simulate Batch Dryer : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Dryer %:::::::::::::::::::::::::::::::::::::::::::: % 2A6-Simulate Waste treatment : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ Waste_Treatment %:::::::::::::::::::::::::::::::::::::::::::: % 2A7-Compute Process Economics : %::::::::::::::::::::::::::::::::::::::::::::------------------------------ F = Overall_Process_Economic_Objective(X); end
You need to login to post a comment.
