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

2 ビュー (過去 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 Center および File ExchangeSolver 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