How can I use integer constraints in fgoalattain?
11 views (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
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.
More Answers (0)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!