unfix_parameters#

pharmpy.modeling.unfix_parameters(model, parameter_names)[source]#

Unfix parameters

Unfix all listed parameters

Parameters:
  • model (Model) – Pharmpy model

  • parameter_names (list or str) – one parameter name or a list of parameter names

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import fix_parameters, unfix_parameters, load_example_model
>>> model = load_example_model("pheno")
>>> model = fix_parameters(model, ['PTVCL', 'PTVV', 'THETA_3'])
>>> model.parameters.fix    
{'PTVCL': True, 'PTVV': True, 'THETA_3': True, ...}
>>> model = unfix_parameters(model, 'PTVCL')
>>> model.parameters.fix        
{'PTVCL': False, 'PTVV': True, 'THETA_3': True, ...}

See also

unfix_paramaters_to

Unfixing parameters and setting a new initial estimate in the same function

fix_parameters

Fix parameters

fix_or_unfix_parameters

Fix or unfix parameters (given boolean)

fix_parameters_to

Fixing and setting parameter initial estimates in the same function

unconstrain_parameters

Remove all constraints of parameters