Filter löschen
Filter löschen

how to add condition on fsolve

1 Ansicht (letzte 30 Tage)
Debarshi Chakraborty
Debarshi Chakraborty am 22 Jan. 2020
Beantwortet: Walter Roberson am 22 Jan. 2020
clc
options=optimset('Display','iter');
x0 = [-5;-5;-5;-5;-5;-5];
options = optimset('Display','iter');
[x,fval] = fsolve(@myfun,x0,options);
x,fval
how can i this conditon for in f solvef ( 0<x1<x2<x3<x4<x5<x6<1.5708)
please help me with this code

Antworten (1)

Walter Roberson
Walter Roberson am 22 Jan. 2020
You cannot add any such condition for fsolve().
Just solve normally and then sort the output.

Kategorien

Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by