Info

This question is closed. Reopen it to edit or answer.

How to optimize a function using all types of constraints?

2 views (last 30 days)
Hi,
I need to optimize a profit function in which I need to use the following contraints: - Inequality linear (A); - Equality linear (Aeq); - Inequality nonlinear (C); - Equality nonlinear (Ceq); - lower and upper (lb,ub); - Integer (intcon);
I started to use the genetic algorithm function (ga), but then I noticed that it isn't possible to use, at the same time, integer contraints and linear or nonlinear equality constraints.
Is there any other way to use all the constraints listed above??
Please help me!
Regards,

Answers (1)

Matt J
Matt J on 22 Jun 2015
You could try relaxing the equality constraints to inequality constraints with a tolerance, similar to what this person did,

Community Treasure Hunt

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

Start Hunting!