第一次发帖 求大家帮忙做一道题。
이전 댓글 표시
function [x,f]=myf6(a,b)
syms x;
f=4*x(1)^3-a*x(1)-2*x(2);
c=[1 1;2 1;1 -b];
d=[4;5;-2];
x0=[1;1];
[x,f]=fmincon('f',x0,c,d,[],[],lb)
这是我写的其中一个,还是不对。。。

답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 数学에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!