Originally posted by: abdulgani
Hi all,
Below is my code and my target is to convert vacations tuple to an int array such as [[1,0,1],[0,1,1]] . I am quite new to here. could you please help me?
.dat
nurses = {<"Ann" 11 1 25>
<"Dee" 3 3 21>
};
Weekdays = {"Monday" "Tuesday" "Wednesday"};
mod.
{string} Weekdays = ...;
tuple nurse {
key string name;
int seniority;
int qualification;
int payRate;
}
{nurse} nurses = ...;
tuple vacation{
key string nurse;
key string weekday;
int flag;
}
{vacation} vacations = {<"Ann","Monday",1>,<"Ann","Tuesday",0>,<"Ann","Wednesday",1>,<"Dee","Monday",0>,<"Dee","Tuesday",1>,<"Dee","Wednesday",1>};
#DecisionOptimization#OPLusingCPLEXOptimizer