[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Creating variables
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Creating variables |
Date: |
Fri, 2 Apr 2010 10:41:07 +0400 |
> So if any variables I generate, that don #39;t exist in any of the
> constraint or objective, will not be stored in memory?
Yes. Every elemental variable is created only if it is actually
referenced somewhere in the model. For example, if a model has the
following statements:
var x{1..1000};
s.t. foo: x[5] + x[10] >= 3;
only two elemental variables x[5] and x[10] will be generated.