Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
How to solve set of non-linear equations using fsolve. Set of non-linear equations have equality and in-equality equations.
  2 commentaires
Kurnam Gnaneshwar
Kurnam Gnaneshwar le 17 Juil 2021
Thank You Torsten.
Is there any way to solve these equations using fsolve.
Torsten
Torsten le 17 Juil 2021
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.

Connectez-vous pour commenter.

Réponse acceptée

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

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by