0

Let 'I' from 1 till 100 , be a set , and w(I), u(I) be a parameters , how can code this statement in GAMS :

if for all I we have w(I)<0 and w(I)*u(I) =0 then display ' converged'.

1 Answers1

1
Display$(smax(I,w(I))<0 and smax(I,w(I)*u(I))=0 and smin(I,w(I)*u(I))=0) 'Converged';
Lutz
  • 2,197
  • 1
  • 10
  • 12