help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Decision var


From: Andrew Makhorin
Subject: Re: [Help-glpk] Decision var
Date: Mon, 21 Nov 2011 19:31:40 +0300

> Sorry but I can figure this out.
> What would I do if I have:
> 
> 
> set S := s1 s2 s3 s4;
> set R := r1 r2 ;
> param fr := r1 42
> r2 42 ;
> 
> 
> var x {s in S, r in R, i in 1..fr[r]}, binary;
> 
> 
> and I want to, lets say force x[s1,r2,10] to be 1?
> 

s.t. foo: x['s1','r2',10] = 1;





reply via email to

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