Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

2 ビュー (過去 30 日間)
Devdatt Thengdi
Devdatt Thengdi 2018 年 3 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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