IBM ILOG Solver User's Manual > Developing Solver Applications > Developing Applications > Implementing and optimizing > Preprocess variables |
Preprocess variables |
INDEX
![]() |
The primitive algorithm IloGenerate
chooses variables separately in the order that they are given. This convention can be extremely useful when you've already preprocessed the variables in some appropriate way to put them into the "right" order.
Of course, this tactic is inadequate if the order itself depends on the states of other variables. Such a dynamic order (one depending on other variable states) can be expressed straightforwardly in Solver by means of the evaluation functions, IlcChooseXXX
.
Obviously, the criteria for evaluation must be pertinent; for example, the domain size of binary variables (whose values are either 0 or 1, and thus the size of whose domain is at most two) would not work well here.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |