ILOG CPLEX 11.0 User's Manual > Programming Considerations > Tuning Tool > Example: Time Limits on Tuning in the Interactive Optimizer |
Example: Time Limits on Tuning in the Interactive Optimizer |
INDEX PREVIOUS NEXT |
As an example, suppose that you want to spend an overall amount of time tuning the parameter settings for a given model, say, 1000 seconds. Also suppose that you want ILOG CPLEX to make multiple attempts within that overall time limit to tune the parameter settings for your model. Suppose further that you want to set a time limit on each of those attempts, say, 200 seconds per attempt.
In the Interactive Optimizer, first enter your model into a session (for example, by reading a formatted file), like this:
read model.mps
Then set the overall time limit through the environment with this command:
set timelimit 1000
That command makes 1000 seconds available as a resource in the environment. The command effectively sets the overall time limit (TiLim
, CPX_PARAM_TILIM
).
Then set the tuning time limit, like this:
set tune timelimit 200
This series of commands tells ILOG CPLEX to tune the parameters of your model, making multiple attempts of 200 seconds each (set by the tuning time limit TuningTiLim
, CPX_PARAM_TUNINGTILIM
), within an overall time limit of 1000 seconds (set by the time limit TiLim
, CPX_PARAM_TILIM
) .
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |