|
Neglecting to deal with sets - error G Uncontrolled set |
Top Previous Next |
|
Errors occur when one does not sum or index over a set referenced within an equation (i.e., in the example shorterr09.gms the set Process is used occurs but is not summed over or used in defining the equations). This is marked with message $149.
26 AVAILABLE(RESOURCE).. RESOURUSE(RESOURCE,PROCESS) **** $149 **** 149 Uncontrolled set entered as constant 27 *PRODUCTION(PROCESS) =L= RESORAVAIL(RESOURCE); **** $149 **** 149 Uncontrolled set entered as constant 28 scalar x; 29 x=sum(resource,RESOURUSE(RESOURCE,PROCESS)); **** $149 **** 149 Uncontrolled set entered as constant 30 parameter resource2(resource); 31 resource2(resource)=RESOURUSE(RESOURCE,PROCESS); **** $149 **** 149 Uncontrolled set entered as constant |