필터 지우기
필터 지우기

How to solve set of non-linear equations using fsolve. Set of non-linear equations have equality and in-equality equations.

조회 수: 1 (최근 30일)
How to solve set of non-linear equations using fsolve. Set of non-linear equations have equality and in-equality equations.
  댓글 수: 2
Kurnam Gnaneshwar
Kurnam Gnaneshwar 2021년 7월 17일
Thank You Torsten.
Is there any way to solve these equations using fsolve.
Torsten
Torsten 2021년 7월 17일
If you introduce slack variables to convert your inequalities to equalities, you can also use fsolve.
That means:
If you have a set of inequalities of the form
f(x) <= 0,
you introduce new variables y and solve
f(x) + y.^2 = 0.

댓글을 달려면 로그인하십시오.

채택된 답변

Torsten
Torsten 2021년 7월 17일
Use fmincon instead of fsolve. Simply set the objective function to 0 and use fmincon only to determine a feasible point of your problem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by