[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] GLPM and conditional constraints
From: |
Jiri K |
Subject: |
Re: [Help-glpk] GLPM and conditional constraints |
Date: |
Thu, 12 Aug 2010 07:23:02 -0700 (PDT) |
param headcount{d in D, c in C, f in F};
param forecast{d in D, c in C, f in F};
var T{d in D, c in C, f in F};
s.t. name_of_constraint{d in D, c in C, f in
F:(headcount[d,c,f]/forecast[d,c,f])-1<0.08}:T[d,c,f]=0;
Something like this?
Best regards
Jiri
Drakuzz wrote:
>
> Hello list,
> I want to program a constraint which is applied only if a condition is
> met:
> I have 2 parameters named headcount[d,c,f] and forecast{d,c,f] and a
> variable named T[d,c,f].
> constraint : If (headcount[d,c,f]/forecast[d,c,f])-1<0.08 then T[d,c,f]=0.
> How do i code it please?
> Thank you in advance.
> Drakuzz
>
--
View this message in context:
http://old.nabble.com/GLPM-and-conditional-constraints-tp29386420p29419263.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.