Originally posted by: xspeng
int NbPlants = ...; //j belong to P
rangePlants = 1..NbPlants;
int NbCustomers = ...;
range Customers = 1..NbCustomers; // c belong to C
int NbProducts = ...;
range Products = 1..NbProducts;// i belong to N
int NbPeriods = ...; // t belong to T
range Periods = 1..NbPeriods ;
For more details, please see the attached pictures
I have code :
float Demand[Customers][Products][Periods];
dvar float+ Backlog[Customers][Products][Periods];
dvar float+ Lostsale[Customers][Products][Periods];
but i do not know how to code the dvar float S/ and the equality constraint ,as picture2,3,4
I hope you can help to solve the problems
Thank you so much for your help in advance
#DecisionOptimization#OPLusingCPLEXOptimizer