how to add condition on fsolve

조회 수: 2 (최근 30일)
Debarshi Chakraborty
Debarshi Chakraborty 2020년 1월 22일
답변: Walter Roberson 2020년 1월 22일
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

답변 (1개)

Walter Roberson
Walter Roberson 2020년 1월 22일
You cannot add any such condition for fsolve().
Just solve normally and then sort the output.

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by