[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Help required regarding cosntraint setup in glpk
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Help required regarding cosntraint setup in glpk |
Date: |
Sat, 22 Jul 2006 22:18:47 +0400 |
> I have been using GLPK. I wanted to know if we have a certain number of
> constraints in the model file (constr1, constr2 etc.,), Can we choose to
> run the model file by turning off certain constriants? For e.g., My data
> file has only constr1 but not constr2 and I need to turn off constr2
> before running the model, is there any way we can do this? I know AMPL has
> the ability of turning constraints on or off in the run file.
Currently glpk does not support such feature. However, you can use
the C preprocessor to do that:
gcc -E -xc modfile > preprocessed modfile