Entering improper nonlinear expressions - error J

Endogenous function

Top  Previous  Next

One gets messages $51-$60 and $256 containing the word ENDOGENOUS when the equations contain nonlinear terms beyond the capability of the solver being used (i.e., nonlinear terms do not work in LP solvers).  The example shorterr13.gms illustrates the first two such errors under the use of the errmsg=1 option which repositions the error message explanatory text.

 

  26  AVAILABLE(RESOURCE).. SUM(PROCESS,RESOURUSE(RESOURCE,PROCESS)

  27                    *sqr(PRODUCTION(PROCESS)))  =L= RESORAVAIL(RESOURCE);

  28  MODEL RESALLOC /ALL/;

  29  SOLVE RESALLOC USING LP MAXIMIZING PROFIT;

****                                          $51,256

****  51  Endogenous function argument(s) not allowed in linear models

**** 256  Error(s) in analyzing solve statement. More detail appears

****      Below the solve statement above

**** The following LP errors were detected in model RESALLOC:

**** 51 in equation AVAILABLE .. VAR argument(s) in function