convert_params_to_vars

(function from pyomo.contrib.parmest.utils.model_utils)

pyomo.contrib.parmest.utils.model_utils.convert_params_to_vars(model, param_names=None, fix_vars=False)[source]

Convert select Params to Vars

Parameters:
  • model (Pyomo concrete model) – Original model

  • param_names (list of strings) – List of parameter names to convert, if None then all Params are converted

  • fix_vars (bool) – Fix the new variables, default is False

Returns:

model – Model with select Params converted to Vars

Return type:

Pyomo concrete model