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 个评论
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