How can I use integer constraints in fgoalattain?

11 views (last 30 days)
I want to optimize for a number of conductors, and one of the inputs of the function is an integer. In particular, it is an index of a conductor's values in a matrix, containing all of the info from size to cost to resistance of that conductor for the rest of the function.
I currently have this capability with the optimization function "ga", the genetic algorithm, but I also would like to have the function aim to get underneath a certain value of voltage drop, or "goal".
Is this possible? The INTCON option seems like it would work for all of the optimization functions, but it only appears to be in GA.
This is also a multi-objective optimization problem; another reason I feel fgoalattain will be useful. If it's possible to set goals in the genetic algorithm, that would also be great.
Thanks in advance for your time!

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 24 Jul 2013
Hi Neal, this is currently not supported in the product. As you rightly noted GA is the only function currently that allows you to specify integer constraints.
However, there are a number of mixed integer solvers in the File Exchange . You might find something there that may be useful to you.
  1 Comment
Neal
Neal on 24 Jul 2013
Ah, I see. I will see what the File Exchange has then.
Thanks again!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!