Simulation & Optimization HW - NO (7) : Elzubair Babiker Fadlulmoula Hussain 152011

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Simulation & Optimization

Hw.NO(7)
Elzubair Babiker Fadlulmoula Hussain 152011
:PROBLEM 4
Total annual variable cost= column variable cost + condenser variable cost +reboiler variable cost+
cooling water variable cost + steam variable cost

: FIRSTLY: finding (cooling water & steam) equation's coefficients by using matlab

:SCRIPT FILE
R=[1.2 1.3 1.4 1.5 1.7];
CWC=[17820 18600 19410 20220 21870];
SC=[136500 142500 148800 155100 167100];
PO1=polyfit(R,CWC,2);
PO2=polyfit(R,SC,2);

:IN THE COMMAND WINDOW


= PO1

* 1.0e+03

9.1464 6.6024 0.5191

PO2 >>

= PO2

* 1.0e+04

5.8413 6.7522 0.2099-


:THEN THE cooling water variable cost equation

10^3*)R^2 +6.6024*R +0.5191*9.1464(

:steam variable cost equation

10^4*)R^2 + 6.7522*R – 0.2099 *5.8413(

THEN the total annual variable costs = (1.23*R^2 -1.24*R +0.35)*10^5 + (3.82*R^2+ 1.68*R -
0.086)*10^3 +(7.68*R^2 +4.16*R – 0.4)*10^3 + (9.1464*R^2 +6.6024*R +0.5191)*10^3
+(5.8413*R^2 + 6.7522*R – 0.2099)*10^4

THEN the total annual variable cost equation = 202.039*R^2 – 44.0356*R + 32.9341

:THE CODE
function f=tutz74(x)
f=202.039*x^2 -44.0356*x + 32.9341;

end

:COMMAND WINDOW
>> x

x=
0.1090

>> FVAL

FVAL =

30.5346

FUNCTION FILE:

:SCRIPT FILE

:COMMAND WINDOW

You might also like