Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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);

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!