Originally posted by: SystemAdmin
[agus said:]
Hi,
I am trying to put the ââ¬Ånextââ¬Â function in the forall statement but I got an error message after I tried to run it.
Here is my code:
forall (i in Flights, u,v in i.nodes: u != last(i.nodes) && v == next(i.nodes,u))
t[i][v] - t[i][u]== 0;
I know I can put the ââ¬Ålastââ¬Â function in the forall statement, but I donââ¬â¢t understand why it wonââ¬â¢t work with the ââ¬Ånextââ¬Â function.
Could someone help me?
Thanks
agus
#DecisionOptimization#OPLusingCPLEXOptimizer