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 15:33:08 +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.

There is no error.

Introducing constraint 'HTsHaveSameCompanionForAllFamilies' makes your
model integer infeasible, and in this case values of all variables are
just set to zero. In the printf statement:

   printf {HT in HTs, Fam in Families: HF[HT, Fam] == 1}

there is predicate 'HF[HT, Fam] == 1', and since all variables HF[*,*]
are zero, the predicate is always false over the corresponding domain.

Please note that your model computationally is very hard, so I do not
think that glpsol will be able to solve it for a resonable time.





reply via email to

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