求最优解问题的抛出:
求这个函数的最小值 function f = myfun(x)
f = (pi*(x(3)+2)*x(2)*x(1)^2)/4;
运行后返回(约束在最后面有写)
Warning: Trust-region-reflective method does not currently solve this type of problem,
using active-set (line search) instead.
> In fmincon at 439
Solver stopped prematurely.
fmincon stopped because it exceeded the function evaluation limit,
options.MaxFunEvals = 300 (the default value).
x =
4.0499
14.0013
1.0013
FVAL =
541.3289
说是这个trust……解不了这个问题,那么该怎么改一下?help过没发现怎么改……
非线性约束 function [c,ceq] = mycon(