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
  Data Format FI_T tfrison 3 411 04-11-2025, 06:08 PM
Last Post: tfrison
  Constraint Share Input tfrison 3 535 14-08-2025, 09:08 PM
Last Post: Antti-L
  A quick question to further understand INPUT and SHARE-IN xiao.li8@mcgill.ca 9 1,932 08-05-2025, 07:47 PM
Last Post: xiao.li8@mcgill.ca
Music Use PRC_ACTFLO instead of INPUT/OUTPUT/FLOP for PCG members janis 6 1,409 20-11-2024, 10:11 PM
Last Post: janis
  TFM_UPD could not be input xiao.li8@mcgill.ca 5 2,828 07-05-2024, 11:07 PM
Last Post: xiao.li8@mcgill.ca
  Batteries input capacity constraint juan.correalaguna@vito.be 5 2,710 05-04-2024, 06:00 PM
Last Post: Antti-L
  Constraining input shares LucasD 3 2,159 04-01-2024, 09:33 PM
Last Post: LucasD
Question VBA code in Veda input files AKanudia 11 5,477 29-12-2023, 09:50 AM
Last Post: AKanudia
  INPUT OUTPUT attributes Lukas 1 1,661 03-11-2022, 04:58 AM
Last Post: AKanudia
  Defining dynamic endogenous emission factor for output commodity based on input Simon Andersen 4 3,966 17-02-2022, 01:05 AM
Last Post: Simon Andersen

Forum Jump:


Users browsing this thread: 1 Guest(s)