Hello Andrew

the model below leads to glpsol ending without result or error.

I would have expected an error message like "illegal recursion" if
the param statement cannot be resolved by the current implementation.

Best regards

Xypron

set I := {0..10};
param p{i in I} := if (i==0) then 1 else i * p[i-1],
  >= if (i==10) then 10^9 else p[i+1];
var x;
s.t. c : x = p[3];
solve;
printf x;
end;

-- 
View this message in context: 
http://www.nabble.com/GLPSOL-ends-unexpectedly-due-to-recursion-tp21004933p21004933.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.



_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to