Originally posted by: adsi
hello,
i am currently working on establishing a negotiation between a buyer and a supplier on basis of the multi-capacitated lot sizing problem, implemented in cplex.
in a small scenario, the buyer is producing items 1-4, whereas the supplier is responsible for supplying items 5-7.
what i want to do is create three sets:
{int} buyeroperations
{int} supplieroperations
{int} operations = buyerops union supplierops
my question now, as i am fairly new to cplex/opl, is how to initialize the sets with the respective items in order to work with them in my models.
i guess i could initialize them internally by means of:
{int} buyeroperations = asSet(1..4)
{int} supplieroperations = asSet(5..7)
{int} operations = buyeroperations union supplieroperations
am i correct?
could i however initialize the sets differently via script and a for loop?
thank you for any help in advance.
#DecisionOptimization#OPLusingCPLEXOptimizer