How to solve set of non-linear equations using fsolve. Set of non-linear equations have equality and in-equality equations.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kurnam Gnaneshwar
el 17 de Jul. de 2021
Comentada: Torsten
el 17 de Jul. de 2021
How to solve set of non-linear equations using fsolve. Set of non-linear equations have equality and in-equality equations.
2 comentarios
Torsten
el 17 de Jul. de 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.
Respuesta aceptada
Torsten
el 17 de Jul. de 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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!