How can I use integer constraints in fgoalattain?
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!
Accepted Answer
More Answers (0)
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!