Questions tagged as 'minizinc'

0
answers

How do I make this code in Minizinc?

How can I make this code in Minizinc? Itrieditasfollows:constraintforall(iinnurse,jinpatientwherej!=1)(start[i]==min(arrive[i,j]+((1-y[i,1,j])*H)-sum(uinpatient)(dist[1,j]*y[i,1,u]),0));Butyouarereturningthefollowingerror:"cannot determine b...
asked by 20.02.2018 / 23:23
1
answer

How to make a function return an array in Minizinc

I have the following function in Minizinc: function var int: DefinitelyVisited(array[int] of var int: S) = forall( i in index_set(S) ) ( S[i] == 1 ); This function is returning an integer, but I need it to return an array. Anyone know how I...
asked by 24.05.2018 / 23:59