beam_121 - X function f = augcost(x) f x1 = x(1,1); x2 =...

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

View Full Document Right Arrow Icon
%Problem 12.1 % function beam_121 f x0 = [0.1;0.1]; x lb = [1;1]; l options = optimset('Display','Iter','MaxIter',100,. .. 'MaxFunEvals',500,'LargeScale','off'); %X = FMINCON(FUN,X0,A,B,Aeq,Beq,LB,UB,NONLCON,OPTIONS) % X = fmincon(@augcost,x0,[],[],[],[],lb,[],@nonlin,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: X function f = augcost(x) f x1 = x(1,1); x2 = x(2,1); x f = 8.46*x1*x2; f function [c, ceq] = nonlin(x) f x1 = x(1,1); x2 = x(2,1); x ceq = ; c(1,1) = 3.6/((x1^3)*x2) - 1; c(2,1) = 9/((x1^2)*x2) - 1;...
View Full Document

Ask a homework question - tutors are online