Академический Документы
Профессиональный Документы
Культура Документы
m clc clear all warning off x0=[ 11 218 10 436 ] ; % Starting guess fprintf('The values of cost function and constraints at start point:\n'); f=objfun (x0) [c, ceq] = constraints (x0); options = optimset ('LargeScale', 'off'); [x, fval]=fmincon (@objfun, x0,[],[], [], [],[], [],@constraints, options); %fprintf ('The values of constraints at optimum solution:\n'); [c, ceq] = constraints (x); % Check the constraint values at x