Veda2.0 Released!


Error at line 904570: Equation infeasible due to rhs value
#1
Hello, I am runing one model where I have just added one demand for different years as it is shownin this image:  
   

But when is runing, it appears the next in the run_log. 
   

Does anybody knows what is happening?
Reply
#2
GAMS discovers that your model is infeasible, already before trying to solve it.

You posted a capture from the log file (or the console).  The error should be better described in the listing file (*.lst).  Maybe you can post that listing file, to see what is reported there about the error.

Anyway, from what you said, the model infeasibility error is most likely related to your new demand projection.  You could try fixing it by putting an interpolation option 5 for the DKER_AIR demand (just change DEMAND~2049 to DEMAND~0 and put 5 under it).
Reply
#3
(01-04-2024, 05:37 PM)Antti-L Wrote: GAMS discovers that your model is infeasible, already before trying to solve it.

You posted a capture from the log file (or the console).  The error should be better described in the listing file (*.lst).  Maybe you can post that listing file, to see what is reported there about the error.

Anyway, from what you said, the model infeasibility error is most likely related to your new demand projection.  You could try fixing it by putting an interpolation option 5 for the DKER_AIR demand (just change DEMAND~2049 to DEMAND~0 and put 5 under it).

It does not alow me to attach the LST file. 
I have changed the years, and just have 2040 and then the interpolation rule. 
My idea is to create a demand because i want to simulate a PPA. But at the same time of the PPA, there is an export process that can work at the same time. I guess that should not be the problem right?
Reply
#4
You should zip the file, and then you can upload it.
Reply
#5
(01-04-2024, 05:57 PM)Antti-L Wrote: You should zip the file, and then you can upload it.


.zip   master_thesis_ppa.zip (Size: 27.5 KB / Downloads: 3)
Here it is
Reply
#6
There are no error messages there in the file you posted. There would have been if you still have the error. So, looks like it was fixed already?
Reply
#7
(01-04-2024, 06:03 PM)Antti-L Wrote: There are no error messages there in the file you posted.  There would have been if you still have the error.  So, looks like it was fixed already?

Right now is being solved, but it appears this which i am not sure if is correct:
   
that scaled infeas is weird
Reply
#8
Hard to say much about that without seeing the full log. If the full log is available (up to that point, or full after the run is completed/interrupted), that would be more helpful..
Reply
#9
(01-04-2024, 06:50 PM)Antti-L Wrote: Hard to say much about that without seeing the full log.  If the full log is available (up to that point, or full after the run is completed/interrupted), that would be more helpful..
Okay when it finish if it does not work fine i will send you the file
Reply
#10
(01-04-2024, 06:50 PM)Antti-L Wrote: Hard to say much about that without seeing the full log.  If the full log is available (up to that point, or full after the run is completed/interrupted), that would be more helpful..
Hello Antii,  I run again the model and is still infeasible, but is strange because the only thing i have done is to add a small demand. I am attaching the LST file and also the run log.


.zip   master_thesis_ppa.zip (Size: 66.14 KB / Downloads: 5)
Reply
#11
(01-04-2024, 06:50 PM)Antti-L Wrote: Hard to say much about that without seeing the full log.  If the full log is available (up to that point, or full after the run is completed/interrupted), that would be more helpful..

I am starting to believe looking to the file that maybe is because i have use DAYNITE for the demand when it actually should be annual .
Reply
#12
Well yes, the log shows that Cplex finds the model infeasible already at the presolve phase, and in the listing file you can find additional information pointing to an infeasibility at a specific timeslice, and both the exogenous demand for DKER_AIR and the exports of EXP_KRE_DK appear to be involved in that condition.  That is useful information:

Number of equations in conflict: 2
lower: EQG_COMBAL('REG1',2040,'DKER_AIR',W01D5H02) > 0.000342466
lower: EQG_COMBAL('REG1',2040,'EXP_KRE_DK',W01D5H02) > 0

Number of variables in conflict: 1
lower: VAR_ACT('REG1',2040,2040,'EXPKRE_DK',W01D5H02) > 0

As I don't know the details of your model, I am afraid I not able to give much more help about it. I have no idea why the demand would cause infeasibility (possibly only at that specific timeslice, but that's not granted), because I understood earlier that you have extensive storage processes as well. You are the expert of your model, and so I think you should be able to find out why that infeasibility occurs.

The DAYNITE level of your demand causes the demand to have a flat profile over the year (if no demand profile is explicitly defined), and if that should not be such, you can of course try and change it to ANNUAL, or define an appropriate demand profile.
Reply
#13
(03-04-2024, 12:04 AM)Antti-L Wrote: Well yes, the log shows that Cplex finds the model infeasible already at the presolve phase, and in the listing file you can find additional information pointing to an infeasibility at a specific timeslice, and both the exogenous demand for DKER_AIR and the exports of EXP_KRE_DK appear to be involved in that condition.  That is useful information:

Number of equations in conflict: 2
lower: EQG_COMBAL('REG1',2040,'DKER_AIR',W01D5H02) > 0.000342466
lower: EQG_COMBAL('REG1',2040,'EXP_KRE_DK',W01D5H02) > 0

Number of variables in conflict: 1
lower: VAR_ACT('REG1',2040,2040,'EXPKRE_DK',W01D5H02) > 0

As I don't know the details of your model, I am afraid I not able to give much more help about it. I have no idea why the demand would cause infeasibility (possibly only at that specific timeslice, but that's not granted), because I understood earlier that you have extensive storage processes as well. You are the expert of your model, and so I think you should be able to find out why that infeasibility occurs.

The DAYNITE level of your demand causes the demand to have a flat profile over the year (if no demand profile is explicitly defined), and if that should not be such, you can of course try and change it to ANNUAL, or define an appropriate demand profile.

Yes what i want is just an annual demand that must be filled with kerosen, the profile have been done for the  ship transport of the kerosen.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sync error when including international trade [email protected] 4 277 03-02-2025, 08:01 PM
Last Post: [email protected]
  VEDA2 fatal error (unexpected case sensitivity) Antti-L 2 482 30-08-2024, 10:49 PM
Last Post: Antti-L
  Unexpected error in model run BSR 2 606 17-07-2024, 07:07 PM
Last Post: BSR
  An error when I read JRC-EU-TIMES Lee 7 2,307 03-06-2024, 05:28 PM
Last Post: Lee
  Model Infeasible Question VanessaDing 4 1,356 14-03-2024, 07:47 PM
Last Post: Antti-L
Exclamation Error: Unexpected GAMSCMEX return code jskrzypek 4 2,150 13-12-2023, 09:54 PM
Last Post: jskrzypek
  Error with CAPACITY JozefO 1 949 03-02-2023, 12:22 AM
Last Post: Antti-L
  Getting an error while creating the model jskrzypek 7 4,397 25-01-2023, 01:04 AM
Last Post: Ravinder
  Error Messages JozefO 3 1,415 12-12-2022, 02:20 PM
Last Post: Ravinder
  Error in Batch Export YuFeng 5 3,382 26-08-2022, 07:32 AM
Last Post: YuFeng

Forum Jump:


Users browsing this thread: 1 Guest(s)