Info

此问题已关闭。 请重新打开它进行编辑或回答。

Optimization tool: Toolbox gives out a favourable output but Code for fmincon gives out 'non feasible solution'

1 次查看(过去 30 天)
What mistake am I making? Or at least could you tell me how to extract values from the optimization toolbox so that I can use it in plot function? I have attached a snippet of the optimtool.
clc
x0 = [0.01, 1, 10, 8, 1];
%options = optimset('PlotFcns',@optimplotfval);
fitnessfcn = @(x)Lobo(x(1), x(2), x(3), x(4), x(5));
nonlcon1 = @(x)nonlcon(x(1), x(2), x(3), x(4), x(5));
lb = [0.01, 0.1, 1, 8, 1];
ub = [1, 18.3, 1950 ,20, 50];
[X, fval] = fmincon(fitnessfcn, x0, [], [], [], [], lb, ub, nonlcon1);
X
disp(X);

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by