10.07.2015 Views

CPLEX 11

CPLEX 11

CPLEX 11

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CPLEX</strong> <strong>11</strong> 6individual GDX solution file. The name is constructed using the prefix soln (which can be specified differentlyby option SolnPoolPrefix), the name of the model and a sequence number. For example soln loc p1.gdx.GAMS/Cplex will overwrite existing GDX files without warning. The set Index allows us to conveniently walkthrough the different solutions in the solution pool:...solve mymodel min z using mip;set solnpossible solutions in the solution pool /file1*file1000/solnpool(soln) actual solutions;file fsol;execute_load ’solnpool.gdx’, solnpool=Index;loop(solnpool(soln),put_utility fsol ’gdxin’ / solnpool.te(soln):0:0;execute_loadpoint;display z.l;);4 GAMS OptionsThe following GAMS options are used by GAMS/Cplex:Option Bratio = x;Determines whether or not to use an advanced basis. A value of 1.0 causes GAMS to instruct Cplex notto use an advanced basis. A value of 0.0 causes GAMS to construct a basis from whatever information isavailable. The default value of 0.25 will nearly always cause GAMS to pass along an advanced basis if asolve statement has previously been executed.Option IterLim = n;Sets the simplex iteration limit. Simplex algorithms will terminate and pass on the current solution toGAMS. In case a pre-solve is done, the post-solve routine will be invoked before reporting the solution.Cplex handles the iteration limit for MIP problems differently than some other GAMS solvers. The iterationlimit is applied per node instead of as a total over all nodes. For MIP problems, controlling the length ofthe solution run by limiting the execution time (ResLim) is preferable.Simlarly, when using the sifting algorithm, the iteration limit is applied per sifting iteration (ie per LP).The number of sifting iterations (LPs) can be limited by setting Cplex parameter siftitlim. It is the numberof sifting iterations that is reported back to GAMS as iterations used.Option ResLim = x;Sets the time limit in seconds. The algorithm will terminate and pass on the current solution to GAMS. Incase a pre-solve is done, the post-solve routine will be invoked before reporting the solution.Option SysOut = On;Will echo Cplex messages to the GAMS listing file. This option may be useful in case of a solver failure.ModelName.Cheat = x;Cheat value: each new integer solution must be at least x better than the previous one. Can speed up thesearch, but you may miss the optimal solution. The cheat parameter is specified in absolute terms (like theOptCA option). The Cplex option objdif overrides the GAMS cheat parameter.ModelName.Cutoff = x;Cutoff value. When the branch and bound search starts, the parts of the tree with an objective worse thanx are deleted. This can sometimes speed up the initial phase of the branch and bound algorithm.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!