Originally posted by: SystemAdmin
[Boon said:]
Hi,
I have a question about how to declare decision variables ONLY to the desired indices.
I have a set named DEPOT.
I have a data variable Active[DEPOT]. Active[DEPOT]=1 if depot is active and =0 otherwise.
I have a binary viriable x, which index over DEPOT.
When I declare x I type in " dvar boolean x[DEPOT]; "
Now x is declared all over DEPOT. I want to declare x ONLY where Active[DEPOT]=1. How can I do this?
Thanks a lot,
Boon
#DecisionOptimization#OPLusingCPLEXOptimizer