gams:equation_infeasible_due_to_rhs_value

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

gams:equation_infeasible_due_to_rhs_value [2021/05/06 15:43] Atharv Bhosekar removed |
— (current) | ||
---|---|---|---|

Line 1: | Line 1: | ||

- | ====== Equation infeasible due to rhs value ====== | ||

- | The complete error message in the lst file is: | ||

- | <code> | ||

- | **** Exec Error at line ...: Equation infeasible due to rhs value | ||

- | **** INFEASIBLE EQUATIONS ... | ||

- | |||

- | ... | ||

- | </code> | ||

- | |||

- | There is the model attribute ''tolinfeas'' you can set, e.g.: ''model.tolinfeas = 1e-5;'' | ||

- | |||

- | This attribute is initially set to ''NA'', in which case GAMS will use a value close to the machine precision. For example the equation: | ||

- | <code> | ||

- | a.. 0*x =e= 0.0001; | ||

- | </code> | ||

- | will be infeasible. This can be reversed using | ||

- | <code> | ||

- | mymodel.tolinfeas = 1e-3; | ||

- | </code> | ||

- | which will make the above equation feasible. Other model attributes changing internal GAMS tolerances are: ''tolinfrep'' and ''tolproj''. |