{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chap12_prob6 - end function f=Augcost(x x1=x(1,1 x2=x(2,1...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function rod_opt %Problem 12.6 options= optimset('Display','Iter','MaxIter',100,'MaxFunEvals',500,'LargeScale','off'); x=fminuc(@drugcost,0,options);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: end function f=Augcost(x) x1=x(1,1); x2=x(2,1); origcost=12000/(x1*x2^2); penalty=x1^2+x2^2-400; w=10; f=origcost+w*penalty^2; end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online