Hello everyone :)
Me again...
I want to implement the following (attachment) model.
I have a problem with the constraint called: Startbedingung. How can i fix it?
I hope someone could help me :)
Hello everyone :)
Me again...
I want to implement the following (attachment) model.
I have a problem with the constraint called: Startbedingung. How can i fix it?
I hope someone could help me :)
Running your model here I get this error for "Startbedingung": Index out of bound for array "Ende": 0
And indeed, your model says
forall(i in Stationen){
Ende[0][i]["1"]==0;
Ende[0][i]["2"]==0;
}
And indeed, the first index of Ende should come from "Fertigungstakte" and this is defined as
range Fertigungstakte = 1..Fertigungstakt;
No 0 there. The first valid index is 1. I am not sure what you are trying to do. Is this Fertigungstakt number 0 some special and artificial thing? If that is the case you could define
range Fertigungstakte0 = 0..Fertigungstakt;
dvar int Ende[Fertigungstakte0][Stationen][Arbeitsplatz];
and keep the rest of the model as is.
Running your model here I get this error for "Startbedingung": Index out of bound for array "Ende": 0
And indeed, your model says
forall(i in Stationen){
Ende[0][i]["1"]==0;
Ende[0][i]["2"]==0;
}
And indeed, the first index of Ende should come from "Fertigungstakte" and this is defined as
range Fertigungstakte = 1..Fertigungstakt;
No 0 there. The first valid index is 1. I am not sure what you are trying to do. Is this Fertigungstakt number 0 some special and artificial thing? If that is the case you could define
range Fertigungstakte0 = 0..Fertigungstakt;
dvar int Ende[Fertigungstakte0][Stationen][Arbeitsplatz];
and keep the rest of the model as is.
- DanielJunglas
- 2018-05-18T13:28:38Z
Running your model here I get this error for "Startbedingung": Index out of bound for array "Ende": 0
And indeed, your model says
forall(i in Stationen){
Ende[0][i]["1"]==0;
Ende[0][i]["2"]==0;
}And indeed, the first index of Ende should come from "Fertigungstakte" and this is defined as
range Fertigungstakte = 1..Fertigungstakt;
No 0 there. The first valid index is 1. I am not sure what you are trying to do. Is this Fertigungstakt number 0 some special and artificial thing? If that is the case you could define
range Fertigungstakte0 = 0..Fertigungstakt;
dvar int Ende[Fertigungstakte0][Stationen][Arbeitsplatz];and keep the rest of the model as is.
Thank you!