Originally posted by: Laser.Cho
Hi. I made a code, but there is quite terrible code. This is 2 workers calendar function.
///=================
IloNumToNumStepFunction WORKER0(env,0,999,100); // worker 0 is for Joe, 1 is for Jim
IloNumToNumStepFunction WORKER1(env, 0, 999, 100); // worker 1 is Jim
//==============
for efficient, I want to make it as array. Like this.
//===============
IloNumToNumStepFunction WORKER[2]; // worker 0 is for Joe, 1 is for Jim
for(int i=0;i<2;i++)
WORKER[i].setBLAH BLAH (env,0,999,100);
But it doesn't work.
I can make step function array, But I cannot set their env, (Oh, I can set their Min ans Max)
How can I use stepFunction array?
#CPOptimizer#DecisionOptimization