bug-glpk
[Top][All Lists]
Advanced

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

Re: [Bug-glpk] printf statement being ignored with large constraint


From: Andrew Makhorin
Subject: Re: [Bug-glpk] printf statement being ignored with large constraint
Date: Mon, 28 Jan 2008 14:14:55 +0300

> How am I to know there is a problem with my model? Shouldn't glpsol give me
> an error when it tries to generate the model?

If the solver started to solve the model, it was generated successfully,
without errors.

>  What I do know is that if I
> comment out the third contraint (HTsHaveSameCompanionForAllFamilies), the
> printf works as expected. When I uncomment the third constraint, the model
> generates without error, glpsol runs in 25.0 sec, using 104.6 Mb of memory,
> and an optimal solution is found, but the printf doesn't run.

I am not a magician and unable to detect a possible error in your model
at a distance.

Has that printf statement (or for statement which encloses printf) an
indexing expression whose predicate includes some variables? You said
that in the latter case you saw the message "problem has no integer
feasible solution"; note that in this case values of all variables are
undefined (usually zero).





reply via email to

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