[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] How to use loops in Mathprogram

From: Andrew Makhorin
Subject: Re: [Help-glpk] How to use loops in Mathprogram
Date: Mon, 6 Mar 2006 04:51:38 +0300

>  I had been trying to call "loop with in loop"
> I was trying using "for" loop But i get strange problem
> either it can not be defined or so
> 1.Can we call loops in Math program ?
> 2:If yes then please give me how to use it in math program ?

Look at the example 'queens.mod' included in the glpk distribution.
There are two nested loops there. (I guess you forgot enclosing the
loop body in curly braces.)

> If its not this way please give me in syntax for the function

Please consult the GNU MathProg language description.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]