How can I use integer constraints in fgoalattain?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Shashank Prasanna
il 24 Lug 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Genetic Algorithm in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!