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.

KNITRO 269<br />

option reslim=x<br />

<strong>The</strong> <strong>GAMS</strong> option reslim can be used to set a maximum time limit of x seconds. After this limit is reached,<br />

Knitro will terminate and return the best solution estimate found so far.<br />

option sysout=on<br />

This option prints some Knitro output to the <strong>GAMS</strong> listing file.<br />

2.2 Knitro Options<br />

<strong>The</strong> Knitro options file knitro.opt allows the user to easily set certain algorithmic options.<br />

Options are set by specifying a keyword and a corresponding value on a line in the knitro.opt file. Lines that<br />

begin with a # character are treated as comments and blank lines are ignored. For example, to set the maximum<br />

allowable number of iterations to 500, one could use the following options file:<br />

# KNITRO-<strong>GAMS</strong> Options file<br />

maxit 500<br />

A sample options file knitro.opt is provided for convenience and can be found in the <strong>GAMS</strong> system directory.<br />

Note that this file is only provided as a sample: it is not read by Knitro.<br />

Most user options can be specified with either a numeric value or a string value. <strong>The</strong> individual user options and<br />

their possible numeric values are described in more detail below. Optional string values for many of the options<br />

are indicated in the example knitro.opt file provided with the distribution.<br />

<strong>The</strong> integer valued options are:<br />

Option Description Default<br />

algorithm controls which algorithm to use.<br />

0<br />

0: Knitro will automatically try to choose the best algorithm based on the<br />

problem characteristics<br />

1: Knitro will use the Interior/Direct algorithm<br />

2: Knitro will use the Interior/CG algorithm<br />

3: Knitro will use the Active algorithm<br />

barrule controls the barrier parameter update strategy in the interior-point algorithms. 0<br />

0: Knitro will automatically choose the rule for updating the barrier parameter<br />

1: Knitro will monotonically decrease the barrier parameter<br />

2: Knitro uses an adaptive rule based on the complementarity gap to determine<br />

the value of the barrier parameter at every iteration<br />

3: Knitro uses a probing (affine-scaling) step to dynamically determine the<br />

barrier parameter value at each iteration<br />

4: Knitro uses a Mehrotra predictor-corrector type rule to determine the<br />

barrier parameter with safeguards on the corrector step<br />

5: Knitro uses a Mehrotra predictor-corrector type rule to determine the<br />

barrier parameter without safeguards on the corrector step<br />

NOTE: Only strategies 0-2 are available for the Interior/CG algorithm. All<br />

strategies are available for the Interior/Direct algorithm. <strong>The</strong> last two strategies<br />

are typically recommended for linear programs or convex quadratic programs.<br />

This parameter is not applicable to the Active algorithm.

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

Saved successfully!

Ooh no, something went wrong!