Relative Content

Tag Archive for ampl

Read in named (unindexed) parameters from a table in AMPL

If I have a number of named parameters in an AMPL model, and a table (either in an Excel spreadsheet or in AMPL’s built-in format) with columns ParamName, ParamValue, is there a nice way to read these values in so that the parameter with name ParamName gets the value ParamValue?