unconstrain_parameters#

pharmpy.modeling.unconstrain_parameters(model, parameter_names, strict=True)[source]#

Remove all constraints from parameters

Parameters:
  • model (Model) – Pharmpy model

  • parameter_names (list) – Remove all constraints for the listed parameters

  • strict (bool) – Whether all parameters in input need to exist in the model. Default is True

Examples

>>> from pharmpy.modeling import unconstrain_parameters, load_example_model
>>> model = load_example_model("pheno")
>>> model.parameters['POP_CL']
Parameter("POP_CL", 0.00469307, lower=0.0, upper=∞, fix=False)
>>> model = unconstrain_parameters(model, ['POP_CL'])
>>> model.parameters['POP_CL']
Parameter("POP_CL", 0.00469307, lower=-∞, upper=∞, fix=False)
Returns:

Model – Pharmpy model object

See also

set_lower_bounds

Set parameter lower bounds

set_upper_bounds

Set parameter upper bounds

unfix_parameters

Unfix parameters