Hello, Jason,
MIRO currently assigns values to GAMS parameters at the end of the compilation phase (right before the start of the execution phase). Therefore,
Input is always 1 at the time your expression is evaluated. Admittedly, this behavior is not entirely intuitive and will most likely change before MIRO is officially released.
However, MIRO allows you to set GAMS
command line parameters. This means that using the following MIRO configuration file sets the compile time variable
tmp for you and should therefore achieve what you want to do:
Code: Select all
{
"inputWidgets": {
"GMSPAR_tmp": {
"label": "Select the input file you wish to use",
"choices": [
"1",
"2",
"3"
],
"aliases": [
"File 1",
"File 2",
"File 3"
],
"multiple": false,
"selected": "1",
"alias": "Input file",
"widgetType": "dropdown"
}
}
}
Hope this helps,
Freddy