|
From: | Xypron |
Subject: | Re: [Bug-glpk] glpsol: crash on display |
Date: | Thu, 20 Nov 2008 00:10:10 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18) Gecko/20081030 SeaMonkey/1.1.13 |
Andrew Makhorin wrote:
See, for example, the model examples/bpp.mod, where parameter z is defined recursively.
Hello Andrew,I see the point for indexed parameters (or sets) with bpp.mod. My solution is only valid for non indexed parameters and arrays.
How about the following solution: When evaluating an element of a parameter GLPK "earmarks" it as being in evaluation. If the same element of the parameter is reached recursively an error message "infinite recursion" is issued.
Best regards Xypron
[Prev in Thread] | Current Thread | [Next in Thread] |