matlab大神,我求解非线性规划出现了问题。。怎么画出f函数呢
functionf=fun(x)f=(tan(x(1)-atan(0.5))-tan(x(1)))*x(2)*cos(x(3));A=[100;010;001];b=[p...
function f = fun(x)
f = (tan(x(1) - atan(0.5)) - tan(x(1))) * x(2) * cos(x(3));
A = [1 0 0;
0 1 0;
0 0 1];
b = [pi/2; 3.9; pi];
Aeq = [];
beq = [];
vlb = [0; 0; 0];
vub = [];
[x, fval] = linprog('f', A, b, Aeq, beq, vlb, vub)
求f的最小值 展开
f = (tan(x(1) - atan(0.5)) - tan(x(1))) * x(2) * cos(x(3));
A = [1 0 0;
0 1 0;
0 0 1];
b = [pi/2; 3.9; pi];
Aeq = [];
beq = [];
vlb = [0; 0; 0];
vub = [];
[x, fval] = linprog('f', A, b, Aeq, beq, vlb, vub)
求f的最小值 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询