Make sure parametric variables are set to values so double works when output depends on both parameters and decision variables