deerlab.link¶
- link(model, **links)[source]¶
Link parameters together in a model to create equality relationships between parameters.
Link different sets of parameters to single parameters in a model, such that the values of the linked parameters are all equal to the value of those single parameters. The linked parameters are removed from the model and only the single parameters remain.
- Parameters:
- modeldeerlab.Model
Model object.
- linkskeyword-argument pairs
Keyword-argument pairs, where the arguments must be lists of model parameter names. The corresponding model parameter will be assigned to new parameter whose name is given by the keyword name. For example:
newmodel = link(model,parC = ['parA','parB'])
will return a new model where the values of
parA
andparB
will be given by the new model parameterparC
.
- Returns:
- newmodeldeerlab.Model
New model object without the linked parameter and with the newly defined parameters.