Originally posted by: SystemAdmin
Thanks for the answer !
I checked but I do not seen any mistake such as the one you talked about...
Though, I think that the constraint the more likely to be the origin of this mistake is this one (it uses two tuple definition in the same variable, so maybe there is a misunderstanding)
forall(t in Time, u in Usines : t<Ttot)
Down[u] <=
sum(g in 1..Groupe
t+1[u]) e
<t+1,u,g> * CaracNoeuds
<t+1,u,g>.turb
- sum(g in 1..Groupe[t][u]) e
< t ,u,g> * CaracNoeuds
< t ,u,g>.turb
+ (D
t+1[u] - D[t][u])
<= Up[u];
with the Tuples :
tuple TripleIndex{int t;int u; int g;}
tuple Carac{float turb; float puis;float prim;float tele;}
used in :
{TripleIndex} Index = {<t,u,g> | t in Time, u in Usines, g in 1..Groupe[t][u]}
Carac CaracNoeuds
Index = ...
range Time = 1..Ttot
float Up
Usines = ...
float Down
Usines = ...
D
TimeUsines = ...
and
dvar float+ e
Index in 0..1
I'm sorry, this is quite long and this might not be the error.
I have other constraint with CaracNoeuds
< t ,u,g>.turb and if there is actually and error (why should it be one ? ok, there is one), it definately has to be with that writting
Thanks a lot !
Adrien
#DecisionOptimization#OPLusingCPLEXOptimizer