16.01.2015 Views

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

482 PATH 4.6<br />

At the end of the log file, summary information regarding the algorithm’s performance is given. <strong>The</strong> string<br />

“** EXIT - solution found.” is an indication that PATH solved the problem. Any other EXIT string indicates<br />

a termination at a point that may not be a solution. <strong>The</strong>se strings give an indication of what modelstat and<br />

solstat will be returned to <strong>GAMS</strong>. After this, the “Restarting execution” flag indicates that <strong>GAMS</strong> has been<br />

restarted and is processing the results passed back by PATH.<br />

2.2 Status File<br />

If for some reason the PATH solver exits without writing a solution, or the sysout flag is turned on, the status<br />

file generated by the PATH solver will be reported in the listing file. <strong>The</strong> status file is similar to the log file, but<br />

provides more detailed information. <strong>The</strong> modeler is typically not interested in this output.<br />

2.3 User Interrupts<br />

A user interrupt can be effected by typing Ctrl-C. We only check for interrupts every major iteration. If a<br />

more immediate response is wanted, repeatedly typing Ctrl-C will eventually kill the job. <strong>The</strong> number needed is<br />

controlled by the interrupt limit option. In this latter case, when a kill is performed, no solution is written<br />

and an execution error will be generated in <strong>GAMS</strong>.<br />

2.4 Options<br />

<strong>The</strong> default options of PATH should be sufficient for most models; the technique for changing these options are<br />

now described. To change the default options on the model transport, the modeler is required to write a file<br />

path.opt in the working directory and either add a line<br />

transport.optfile = 1;<br />

before the solve statement in the file transmcp.gms, or use the command-line option<br />

gams transmcp optfile=1<br />

Unless the modeler has changed the WORKDIR parameter explicitly, the working directory will be the directory<br />

containing the model file.<br />

We give a list of the available options along with their defaults and meaning in Table 28.5, Table 28.6, and<br />

Table 28.7. Note that only the first three characters of every word are significant.<br />

<strong>GAMS</strong> controls the total number of pivots allowed via the iterlim option. If more pivots are needed for a<br />

particular model then either of the following lines should be added to the transmcp.gms file before the solve<br />

statement<br />

option iterlim = 2000;<br />

transport.iterlim = 2000;<br />

Similarly if the solver runs out of memory, then the workspace allocated can be changed using<br />

transport.workspace = 20;<br />

<strong>The</strong> above example would allocate 20MB of workspace for solving the model.<br />

Problems with a singular basis matrix can be overcome by using the proximal perturbation option [3], and<br />

linearly dependent columns can be output with the output factorization singularities option. For more<br />

information on singularities, we refer the reader to Chapter 3.<br />

As a special case, PATH can emulate Lemke’s method [7, 31] for LCP with the following options:

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

Saved successfully!

Ooh no, something went wrong!