[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Tell glpk not to use some variables
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Tell glpk not to use some variables |
Date: |
Sat, 30 Aug 2008 17:22:11 +0400 |
> I have another question, I did what you told me about the glp_write_lp
> and I find 1 difference between the file i got and the model Im trying
> to make, its that in the first one almost at the end of the file theres
> a line that says Binaries and it follows the variables that are
> binaries. But in mine instead of saying binaries it says generals. How
> can I change that?
You do not need to change that. In cplex lp format 'binary x' means
the same as 'bound 0 <= x <= 1, general x', i.e. a binary variable is
an integer variable with lower bound 0 and upper bound 1.
> I already have glp_set_col_kind setting the columns as Binaries with
> GLP_BV.