Can't you have a look at my model (attached) and try running it through glpsol yourself? The line in question is line 13. I don't think it's a problem with the printf statement, as it works with line 13 commented out.
--Mike ----- Original Message ----- From: "Andrew Makhorin" <[EMAIL PROTECTED]> To: "Michael Ross" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Monday, January 28, 2008 4:14 AM Subject: Re: [Bug-glpk] printf statement being ignored with large constraint >> 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). >
HomeTeachers.mod
Description: MPEG movie
_______________________________________________ Bug-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-glpk
