> 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.


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

Reply via email to