BeamProbelm1 - objFun(OptimalX) constrFun(OptimalX)...

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

View Full Document Right Arrow Icon
function BeamProbelm1 Xg =[35;25]; LB = [1;1]; UB=[inf;inf]; Options = optimset('fmincon'); Options.Display = 'iter'; [OptimalX] = fmincon(@(x) objFun(x),Xg,[],[],[],[],LB,UB,@constrFun,Options); OptimalX
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: objFun(OptimalX) constrFun(OptimalX) function fx=objFun(x) fx=8.46*x(1)*x(2); function [C,ceq]=constrFun(x) C=zeros(2,1); C(1) = 3.6/x(1)^3/x(2) - 1; C(2) = 9/x(1)^2/x(2) - 1; ceq=;...
View Full Document

Ask a homework question - tutors are online