Originally posted by: schmeich
I figured like you mentioned above that the model uses 2 depots. I only want one. I to just delete the second depot like this but it brings me no solution. If i just do the coordinates the same like oyu said it works
range CustomersAndDepots = 0..(CustomersNumber+1); --> range CustomersAndDepots = 0..(CustomersNumber);
// All vehicles must arrive at the depot n + 1
forall(k in Vehicles)
sum (i in CustomersAndDepots) x[k][i][CustomersNumber+1] == 1;
I MADE LIKE THIS
// All vehicles must arrive at the depot 0
forall(k in Vehicles)
sum (i in CustomersAndDepots) x[k][i][0] == 1;
For me this looks right but something is still wrong.
Another question came up to me when fooling around with the programm:
In the attached file I changed the second depots coordinates to the depot 0 and figures the following:
With this data:
v = 2;
CustomersNumber = 5;
Gender = [1,2];
Skill = [1,2];
No Solution is given which i dont understand because we have a skilled male and an unskilled female The requirements of the patiens are fine with this
RequiredGender = #[
1:2
2:0
3:1
4:2
5:2
]#;
RequiredSkill = #[
1:0
2:1
3:1
4:0
5:0
]#;
Only a skilled male is required and the rest dont care for either gender or dont need skilled people. (I figured that requirement for unskilled is silly and theerefore simply put 0 for no care)
If i just add one nurse it works. This doestn make snese to me since there is no capacity contraint anymore and i didnt add the 8hr working day yet.
Okay so far for now from me.
thanks a lot
#CPLEXOptimizers#DecisionOptimization