How can i define constraint in my optimization problem?

1 visualización (últimos 30 días)
Momin khan
Momin khan el 26 de Dic. de 2019
Comentada: Walter Roberson el 26 de Dic. de 2019
I have a Constraint HP>0.0025 and HP is the function of PS. i dont know how to define this constraint. when i am using it directicly in inequaliity constraint i gives error that row dimension doesnot match. and as a non linear constraint i used it like this " c = HP - 0.0025". Need Help.
  3 comentarios
Momin khan
Momin khan el 26 de Dic. de 2019
thank you for your response. i am using fmincon and PS is the optimal value, and HP is computed by using PS in the equation. and i have used this 0.0025-HP. is there any other method for constraint HP>0.0025?
Walter Roberson
Walter Roberson el 26 de Dic. de 2019
No, not unless HP is a linear calculation.
Note that there are circumstances under which nonlinear constraints are not enforced, in particular during the initial gradient estimation.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Nonlinear Optimization 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!

Translated by