AnsweredAssumed Answered

How to obtain the minimum value of a vector

Question asked by j.huang.3@student.rug.nl on Jun 19, 2015
Latest reply on Jun 23, 2015 by Susanne.Heip

Hi, I am writing a simple algorithm and I want to achieve the following. However, I got error message. I guess I use MIN function in a wrong way.

p=10

NODE=1..p

bottom:real

forall (i in NODE) cost(i):=random*16

forall (i in NODE) capacity(i)=random*10

bottom:=MIN(cost)

forall(i in NODE|cost(i)>bottom*1.5) capacity(i):=capacity(i)*1.2


How can I do it correctly?

Thanks in advance !

Outcomes