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: Thu, 10 Nov 2011 19:30:53 +0300

> I got a question regarding a decision var.
> My problem is that I got this decision var, that is kinda half
> decision var and half a constant.
> So my question is, is it possible so define some of the values of a
> decision var in the data file and let GLPK decide the rest?
> 
> I know that one way to solve this is just to "subtract" the ones that
> is set from the problem and then solve the rest, but it would be nice
> to know if I could do it like that also.

You may fix some decision variables at certain constant values by
introducing appropriate equality constraints, for example,

var x{j in J};

set C, within J;

s.t. foo{j in C}: x[j] = 3.14159;





reply via email to

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