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: Michael Ross
Subject: Re: [Bug-glpk] printf statement being ignored with large constraint
Date: Mon, 28 Jan 2008 15:14:03 +0300

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" <address@hidden>
To: "Michael Ross" <address@hidden>
Cc: <address@hidden>
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).
> 

Attachment: HomeTeachers.mod
Description: MPEG movie


reply via email to

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