[Top][All Lists]

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

Re: [Help-glpk] Re: Mathprog printout query az

From: Andrew Makhorin
Subject: Re: [Help-glpk] Re: Mathprog printout query az
Date: Tue, 01 Feb 2011 16:32:39 +0300

> I had used before inside two for loops
>      printf(if x4[i,j] = 0 then "" else "%s   "), j;
> How would I use your approach below?
> I have tried
> printf {x4[i,j]) >= .001} "%s   ", j;     but this does not work.

Your syntax is incorrect. You should specify the domain followed by a
colon (:) and condition. For example:

printf {i in I, j in J: x4[i,j]) >= .001} ... ;

For more details please see the language reference. See also various
examples included in the glpk distribution.

reply via email to

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