%线性规划
% [x,f]=linprog(c, A, b, Aeq, beq, lb, ub, options);
%实数整数混合规划
% [x,f]=intlinprog(c, intcon, A,b,Aeq,beq,l,u);
%二次规划
%opts = optimoptions('quadprog','Algorithm','interior-point-convex');
%[x,f] = quadprog(H,f,A,b,Aeq,beq,lb,ub,x0,opts);
%非线性规划
% options = optimset('Algorithm', 'interior-point', 'Display', 'off');
%[x,f]=fmincon(fun, 初值, A,b,Aeq,beq,lb,ub,nonlcon, options)
% [x,f]=fmincon(@fun, [0,0,1], [],[],[1,-1,1],[1],[],[],@nonlincon, options);
%
% function fx=fun(x)
% fx=x(1)^2+x(2)^4+x(3)^2-1;
%
%
% end
% function [c, ceq] = nonlincon(x)
% c=x(1)^2+x(2)^2+x(3)^2-1;
% ceq = [ ];
% end
%----------------------------------------------------------
%参数拟合
%非线性最小二乘法拟合
% xdata = [3.6,7.7,9.3,4.1,8.6,2.8,1.3,7.9,10.0,5.4];
% ydata = [16,150.5,260.1,22.5,206.5,9.9,2.7,165.5,325.0,54.5];
% c0=[ 0 0 0];
% f_h=@(c, x) c
地表最强matlab数学模型可能用到的ProgrameModel
最新推荐文章于 2022-08-25 08:57:01 发布