how to define a binary variable in GA tool box
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ayesha Maroof
il 7 Dic 2018
Commentato: buvaneshwari tk
il 19 Giu 2022
Hi all
I am working with a facility location problem where the cost of facility is depending on either opening[1] or not opening a facility.[0].So my one variable is binary.when I go to the tool box it asks for upper and lower bounds.but i want to fix the vaiable to either 0 or 1.How can I do that?
Thanx in advance
0 Commenti
Risposta accettata
Walter Roberson
il 8 Dic 2018
mark it as an integer variable with lb 0 and ub 1
5 Commenti
buvaneshwari tk
il 19 Giu 2022
@Ayesha Maroof please share the code..it will helpful for my research work.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!