help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Question about set expression


From: Andrew Makhorin
Subject: Re: [Help-glpk] Question about set expression
Date: Thu, 07 Apr 2011 19:42:49 +0400

> I have a question related with how to filter some elements 
> from a set by using conditional expressions.
> 
> For example, I have a set of elements made up by 3-tuples
> 
>    set O dimen 3; /* Operations of plates of Jobs (k, l, m) */
> 
> Later in a constraint, I just need to use the 3-tuples elements 
> which third entry is equal to an specific value: (J set elements 
> are composed by 1-tuples)
>  
>    s.t. completionTime{j in J,o in O: o=(*,*,j)}: 
> v_c[j] >= v_b[o]+sum{m in M} b_omega[o,m]*(p_a[o,m]*p_p[o,m]);
>   
> I have tried with this expression {j in J,o in O: o=(*,*,j)} but 
> it does not work.
> 
> I really appreciate any suggestion or direction about how to 
> overcome this problem,
> 

s.t. completionTime{j in J, (k,l,m) in O: m = specific_value}: ... ;





reply via email to

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