help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Glpsol IF-THEN-ELSE expression problem


From: Tor Myklebust
Subject: Re: [Help-glpk] Glpsol IF-THEN-ELSE expression problem
Date: Wed, 14 Feb 2007 23:32:57 -0500 (EST)

I don't get it. Your g is a monotone increasing function; why not just minimise sum sum T[i,j,k]?

On Wed, 14 Feb 2007, Bill wrote:

Hi everyone,

I'm new to Glpk. I'm trying to model an optimazation problem for university
timetabling. In the objective function, I need to minimize the following
function,

g(sum sum T[i,j,k])

g() returns 1 if (sum sum T[i,j,k]) > 0 else 0

The problem is T[i,j,k] is a variable, IF-THEN-ELSE cannot handle variables in
the logical expression. Is there a way around it?

Can anyone help?

Thank you very much
B. Song



_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk





reply via email to

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