The first three months of the model were run, and the last nine months were skipped

Solver related questions
Post Reply
silence
User
User
Posts: 10
Joined: 2 years ago

The first three months of the model were run, and the last nine months were skipped

Post by silence » 2 months ago

Hi everyone,
I am using GAMS to do a water resource allocation problem. There are two reservoirs (R1 and R2) to supply water to two water users (U1 and U2). The water supply cost of reservoir A is lower than that of reservoir B, but reservoir A needs to recharge by diversion, the cost of which is higher. With the minimum annual cost as the configuration goal, the water supply coefficient (A and B) of the two reservoirs as the decision variable, and the month as the calculation step, the GAMS model was run. After the model was run for 3 months, the operation of the remaining 9 months was skipped. What was the reason?
Here is the solve summary:
S O L V E S U M M A R Y

MODEL daliansimple1 OBJECTIVE obj
TYPE MIQCP DIRECTION MINIMIZE
SOLVER SBB FROM LINE 307

**** SOLVER STATUS 13 System Failure
**** MODEL STATUS 13 Error No Solution
**** OBJECTIVE VALUE NA

RESOURCE USAGE, LIMIT NA 1000.000
ITERATION COUNT, LIMIT NA 2000000000
EVALUATION ERRORS NA 0
General nonlinearity detected in row afun(1)
General nonlinearity detected in row afun(2)
General nonlinearity detected in row afun(3)
General nonlinearity detected in row afun(4)
General nonlinearity detected in row afun(5)
General nonlinearity detected in row afun(6)
General nonlinearity detected in row afun(7)
General nonlinearity detected in row afun(8)
General nonlinearity detected in row afun(9)
General nonlinearity detected in row afun(10)
General nonlinearity detected in row afun(11)
General nonlinearity detected in row afun(12)
General nonlinearity detected in row bfun(1)
General nonlinearity detected in row bfun(2)
General nonlinearity detected in row bfun(3)
General nonlinearity detected in row bfun(4)
General nonlinearity detected in row bfun(5)
General nonlinearity detected in row bfun(6)
General nonlinearity detected in row bfun(7)
General nonlinearity detected in row bfun(8)
General nonlinearity detected in row bfun(9)
General nonlinearity detected in row bfun(10)
General nonlinearity detected in row bfun(11)
General nonlinearity detected in row bfun(12)
Could not load data
Detected 24 general nonlinear rows in model

No solution returned
GAMS 25.1.3 r4e34d435fbd Released Oct 30, 2018 WEX-WEI x86 64bit/MS Windows 08/04/21 09:38:25 Page 8
G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m
Solution Report SOLVE daliansimple1 Using MIQCP From line 307


**** SOLVER STATUS FILE LISTED BELOW
=E "General nonlinearity detected in row " 36 ""
=E "General nonlinearity detected in row " 37 ""
=E "General nonlinearity detected in row " 38 ""
=E "General nonlinearity detected in row " 39 ""
=E "General nonlinearity detected in row " 40 ""
=E "General nonlinearity detected in row " 41 ""
=E "General nonlinearity detected in row " 42 ""
=E "General nonlinearity detected in row " 43 ""
=E "General nonlinearity detected in row " 44 ""
=E "General nonlinearity detected in row " 45 ""
=E "General nonlinearity detected in row " 46 ""
=E "General nonlinearity detected in row " 47 ""
=E "General nonlinearity detected in row " 48 ""
=E "General nonlinearity detected in row " 49 ""
=E "General nonlinearity detected in row " 50 ""
=E "General nonlinearity detected in row " 51 ""
=E "General nonlinearity detected in row " 52 ""
=E "General nonlinearity detected in row " 53 ""
=E "General nonlinearity detected in row " 54 ""
=E "General nonlinearity detected in row " 55 ""
=E "General nonlinearity detected in row " 56 ""
=E "General nonlinearity detected in row " 57 ""
=E "General nonlinearity detected in row " 58 ""
=E "General nonlinearity detected in row " 59 ""
=CCould not load data
=CDetected 24 general nonlinear rows in model
**** SOLVER STATUS FILE LISTED ABOVE
GAMS 25.1.3 r4e34d435fbd Released Oct 30, 2018 WEX-WEI x86 64bit/MS Windows 08/04/21 09:38:25 Page 9
G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m
Thanks
Best wishes

Fred
Posts: 266
Joined: 5 years ago

Re: The first three months of the model were run, and the last nine months were skipped

Post by Fred » 1 month ago

Hi,

Your solve statement indicates that you are solving an MIQCP i.e. a Mixed Integer Quadratically Constrained Program.
The error messages indicate that you have general nonlinearities (i.e. your model is actually an MINLP) and tells you the equations where these general nonlinearities occur.

For more detailed help i suggest that you share your code and data to allow other users to reproduce the issue.

I hope this helps!

Fred

silence
User
User
Posts: 10
Joined: 2 years ago

Re: The first three months of the model were run, and the last nine months were skipped

Post by silence » 1 month ago

Hi,
Thanks.
I tried something else to solve the problem, but they still didn't work.
Here is my code and data.
Best wishes!
Attachments
INPUT1.xls
(52 KiB) Downloaded 12 times
daliansimple1.gms
(5.38 KiB) Downloaded 14 times

Post Reply