Veda2.0 Released!


Rounding all input data
#1
Dear all

Are any of you aware of an easier approach to round all values either directly in GAMS or though Veda? 

The issue is that we occasionally experience scaling issues in some of our models, which most like occurs due to not having rounded values in calculations made in our input data. 

Best Regards
Mikkel
Reply
#2
I am not sure that rounding has anything to do with scaling issues. You can identify scaling issues with Jacobian analysis though.
Reply
#3
Dear forum members,

I ask the same question again: do you have a method to round your input data to a specific significant figures ?
Not considering properly the decimal figures may lead to numerical issues with the solvers:

Paragraph: Imprecise rounding of matrix coefficient values: https://gurobi-optimization-gurobi-model...lcond.html

Paragraph 3.3.1 : Macmillan, M., Eurek, K., Cole, W., Bazilian, M.D., 2021. Solving a large energy system optimization model using an open-source solver. Energy Strategy Reviews 38, 100755. https://doi.org/10.1016/j.esr.2021.100755

These numbers with a long decimal part can occur frequently with divisions (currency conversion, etc.) I would like to alter the input data of my model without going over all the tables and manually round the data. I have a formula that can be found in the excel file attached, but I do not find any way to use it with veda. Something similar to the scenario Scen_scalingcorrection.xlsx of the advanced demo model would be handy but with rounding instead of truncating. I can also work with gams if you have a suggestion.

Thanks


Attached Files
.xlsx   rounding.xlsx (Size: 35.88 KB / Downloads: 6)
Reply
#4
>  I can also work with gams if you have a suggestion.

I could implement such into the TIMES code, for all users, if one can find agreement about the design.  Shy
Reply
#5
Thanks. Doing something similar to RPT_OPT control switch where the user can choose to round attributes like ACT_COST to a specific number of significant figures can be a possibility.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Music Use PRC_ACTFLO instead of INPUT/OUTPUT/FLOP for PCG members janis 6 515 20-11-2024, 10:11 PM
Last Post: janis
  TFM_UPD could not be input [email protected] 5 1,653 07-05-2024, 11:07 PM
Last Post: [email protected]
  Batteries input capacity constraint [email protected] 5 1,585 05-04-2024, 06:00 PM
Last Post: Antti-L
  Constraining input shares LucasD 3 1,352 04-01-2024, 09:33 PM
Last Post: LucasD
Question VBA code in Veda input files AKanudia 11 3,785 29-12-2023, 09:50 AM
Last Post: AKanudia
  INPUT OUTPUT attributes Lukas 1 1,183 03-11-2022, 04:58 AM
Last Post: AKanudia
  Defining dynamic endogenous emission factor for output commodity based on input Simon Andersen 4 3,192 17-02-2022, 01:05 AM
Last Post: Simon Andersen
  Copying data from B-Y template to new excel file Kristina.Haaskjold 3 3,590 17-09-2021, 04:33 PM
Last Post: Kristina.Haaskjold
  PostgreSQL data files have a huge Size Mahmoud 5 6,352 10-06-2021, 09:03 AM
Last Post: AKanudia
  error: the filed is too small to accept the amount of data qzaus 1 2,012 20-03-2021, 06:25 AM
Last Post: qzaus

Forum Jump:


Users browsing this thread: 1 Guest(s)