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



_______________________________________________
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to