User Tools

Site Tools


gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed [2008/01/10 10:41]
Franz Nelissen
gams:mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed [2020/05/26 13:06]
Lutz Westermann model format
Line 5: Line 5:
 The message indicates that one of the equations is empty -- essentially,​ you have too many variables to be determined uniquely from the given equations. The message indicates that one of the equations is empty -- essentially,​ you have too many variables to be determined uniquely from the given equations.
  
-The model below will give (correctly) the same error :+The model below will give (correctly) the same error:
 <​code>​ <​code>​
-set i /i1,i2/; +Set i /i1,i2/; 
-alias (i,ii); +Alias (i,ii); 
-variables ​x(i); +Variables ​x(i); 
-equations ​e(i);+Equations ​e(i);
  
 e(i).. sum(ii$(ord(ii)=-1),​ x(ii)) =e= 0; e(i).. sum(ii$(ord(ii)=-1),​ x(ii)) =e= 0;
  
-model m /e.x/;+Model m /e.x/;
 solve m using mcp; solve m using mcp;
 </​code>​ </​code>​
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/mcp_pair_..._has_empty_equation_but_associated_variable_is_not_fixed.txt · Last modified: 2020/05/26 13:06 by Lutz Westermann