AnsweredAssumed Answered

How to obtain the size of mpvar

Question asked by on May 20, 2015
Latest reply on May 20, 2015 by Susanne.Heip

Hello, I am a Xpress starter and I need a little help with the command.

Now I want to obtain the size of mpvar(my variables ROUTE). I know Xpress can do that if I define a set of integer.

But here, I create a dynamic array and I generate the variables by "forall(r in NODE, s in NODE|r<>s and location(r)=1 and location(s)=1) create (ROUTE)".

Which command can I use to get the size of ROUTE?

Any answer will be helpful! Thanks in advance!