unfix_parameters#
- pharmpy.modeling.unfix_parameters(model, parameter_names, strict=True)[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
strict (bool) – Whether all parameters in input need to exist in the model. Default is True
- 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, ['POP_CL', 'POP_VC']) >>> model.parameters.fix {'POP_CL': True, 'POP_VC': True, ...} >>> model = unfix_parameters(model, 'POP_CL') >>> model.parameters.fix {'POP_CL': False, 'POP_VC': 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