gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed

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

gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed [2008/01/10 10:41] Franz Nelissen created |
gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed [2008/01/10 10:41] Franz Nelissen |
||
---|---|---|---|

Line 6: | Line 6: | ||

The model below will give (correctly) the same error : | The model below will give (correctly) the same error : | ||

+ | <code> | ||

set i /i1,i2/; | set i /i1,i2/; | ||

alias (i,ii); | alias (i,ii); | ||

Line 16: | Line 16: | ||

model m /e.x/; | model m /e.x/; | ||

solve m using mcp; | solve m using mcp; | ||

+ | </code> | ||

The equation above is a "degenerate" case in the sense that the lhs vanishes. In that case the matching variable must be fixed (''x.fx(i)=0;''). | The equation above is a "degenerate" case in the sense that the lhs vanishes. In that case the matching variable must be fixed (''x.fx(i)=0;''). | ||

Most likely however you want to prevent such a situation from happening. Use an appropriate dollar condition on | Most likely however you want to prevent such a situation from happening. Use an appropriate dollar condition on | ||

the equation such that this equation is not generated. | the equation such that this equation is not generated. | ||

- |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed.txt ยท Last modified: 2008/01/10 10:41 by Franz Nelissen