help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Problem with max() function


From: Andrew Makhorin
Subject: Re: [Help-glpk] Problem with max() function
Date: Tue, 13 Jul 2004 19:24:49 +0400

>  I have a problem (maybe I discovered a bug) with glpk. I am trying to
>set a constraint with a call to max function. The problem is that glpsol
>fail
>because max() argument are invalids.
>  I did not found any restriction on max function in manual ("Arguments of
>all 
>build-in functions must be numeric expressions"), my arguments are integer.

In your model arguments for max are linear forms, not numeric
expressions, because they refer to variables. Thus, corresponding
constraint is non-linear while glpsol allows only linear constraints.

>  Could you explain me how can I solve this problem ?

Use standard mip techniques to describe non-linearities.


Andrew Makhorin






reply via email to

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