[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Constraining var values to a specified set
From: |
luca.rosellini |
Subject: |
[Help-glpk] Constraining var values to a specified set |
Date: |
Tue, 27 Nov 2007 14:43:20 +0300 |
Hello everybody,
is it possible, in mathprog, to specify that var values should be contained
in a defined set?
Actually my var declaration is:
var p {i in C} >=0 <=1;
but in my problem vars are not in a continous interval but they're more
like:
#MODEL
set S;
var p {i in C} in S; #this tell the solver that p_i values are to be taken
from set S
s.t. ...
#DATA
set S:= s1 s2
Is it possible to obtain something like this in mathprog, and if not, could
please point me to a tool able to solve such kind of problem?
Thanks,
Luca
--
View this message in context:
http://www.nabble.com/Constraining-var-values-to-a-specified-set-tf4880498.html#a13967077
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
- [Help-glpk] Constraining var values to a specified set,
luca.rosellini <=