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.

CONOPT 135<br />

E2 is solved with respect to<br />

X2. Solution value = 6.0000000000E-01<br />

E1 could not be solved with respect to<br />

X1. Final solution value = 3.0000000000E+00<br />

E1 remains infeasible with residual = 9.8612288668E-02<br />

<strong>The</strong> problem is as indicated that the variable to be solved for is at a bound, and the value suggested by Newton’s<br />

method is on the infeasible side of the bound. <strong>The</strong> critical variable is X1 and the critical equation is E1, i.e.<br />

X1 tries to exceed its bound when CONOPT solves equation E1 with respect to X1. To help you analyze the<br />

problem, especially for larger models, CONOPT reports the solution sequence that led to the infeasibility: In this<br />

case equation E2 was first solved with respect to variable X2, then equation E1 was attempted to be solved with<br />

respect to X1 at which stage the problem appeared. To make the analysis easier CONOPT will always report the<br />

minimal set of equations and variables that caused the infeasibility.<br />

Another type of infeasibility is shown by the following model:<br />

VARIABLE X1, X2, X3, OBJ;<br />

EQUATION E1, E2, E3;<br />

E1 .. SQR(X1) + X2 =E= 1.6;<br />

E2 .. 5 * X2 =E= 3;<br />

E3 .. OBJ =E= SQR(X1) + 2 * SQR(X2) + 3 * SQR(X3);<br />

MODEL DEMO / ALL /; SOLVE DEMO USING NLP MINIMIZING OBJ;<br />

where LOG(X1) has been replaced by SQR(X1) and the lower bound on X1 has been removed. This model gives<br />

the message:<br />

** An equation in the pre-triangular part of the model cannot<br />

be solved because of too small pivot.<br />

Adding a bound or initial value may help.<br />

Residual= 4.0000000<br />

Tolerance (RTNWTR)= 6.34931126E-07<br />

E1: Infeasibility in pre-triangular part of model.<br />

X1: Infeasibility in pre-triangular part of model.<br />

<strong>The</strong> solution order of the critical equations and<br />

variables is:<br />

E2 is solved with respect to<br />

X2. Solution value = 6.0000000000E-01<br />

E1 could not be solved with respect to<br />

X1. Final solution value = 0.0000000000E+00<br />

E1 remains infeasible with residual =-4.0000000000E+00<br />

After equation E2 has been solved with respect to X2, equation E1 that contains the term X1 2 should be solved<br />

with respect to X1. <strong>The</strong> initial value of X1 is the default value zero. <strong>The</strong> derivative of E1 with respect to X1 is<br />

therefore zero, and it is not possible for CONOPT to determine whether to increase or decrease X1. If X1 is given<br />

a nonzero initial value the model will solve. If X1 is given a positive initial value the equation will give X1 = 1,<br />

and if X1 is given a negative initial value the equation will give X1 = -1. <strong>The</strong> last type of infeasibility that can<br />

be detected during the solution of the pre-triangular or recursive equations is shown by the following example<br />

VARIABLE X1, X2, X3, OBJ;

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

Saved successfully!

Ooh no, something went wrong!