Originally posted by: Ujfaaz
Hi everyone,
I'm relatively new at OPL and Cplex. I'm trying to build my first Supply Chain model. I have a Boolean variable, which indicates if an activity/process is in a specific site or not.
dvar int open[Sites][Act] in 0..1;
I have 2 Sites and 5 different Activities. So this variable is for example:
[[1, 0, 1, 0, 0]
[0, 1, 0, 1, 1]]
Now i want to model another Boolean variable, which shows me the last activity produces at each site. All activities before should also have a 1.
for this example it should be:
[[1, 1, 1, 0, 0]
[1, 1, 1, 1, 1]]
How can I model this second Boolean variable. Which constraint should I use?
Thanks for your help.
#DecisionOptimization#OPLusingCPLEXOptimizer