[SCIP] Coding in ZIMPL regarding

Gregor Hendel hendel at zib.de
Thu Jan 19 11:22:36 CET 2017


Dear Shahul,

you basically wrote it already, but ommited the "with" keyword that 
supports conditional indexing (I looked at the TSP-example in the manual)


>> forall(a in aircrafts, t in trips) sum( k in trips such that 
>> arrTime[k] > depTime[t] and deptime[k] < arrTime[t]) x[k,a] = (1 – 
>> x[t,a])*10; 

forall <a,t> in AIRCRAFTS * TRIPS do sum <k> in TRIPS with arrTime[k] 
 >depTimep[t] and depTime[k] < arrTime[t] : x[k,a] == (1 - x[t,a]) * 10.

Happy Zimpling,
Gregor


More information about the Scip mailing list