Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
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);

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by