On Tue, 12 Nov 2019, Guidati  Gianfranco wrote:

I am using GLPK to optimize an energy system model for Switzerland. Lots of 
parameters such as costs or efficiencies are defined in a dat file. Now I want 
to systematically vary some of these parameters using a Monte Carlo approach. 
The easiest way to do this would be to just create a small addendum to the dat 
file that redefines / overrides the parameter values that were previously 
defined in the dat file, and to paste these two together. Unfortunately, that 
doesn't work, the solver just complains that a parameter was already defined.

Include parameters Xnormal and Xadjust along with parameter X.
Read in Xnormal and Xadjust instead of X.
Have X computed from Xnormal and Xadjust.

--
Michael   [email protected]
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                             --  someeecards

Reply via email to