Matchete`
Matchete`
ParentModel
ParentModel["parentModel"]
is used in a model file to indicate that the model build directly on top of the parentModel file.
Details and Options
- ParentModel["parentModel"] must be the first expression (non-comment) in a model file for the syntax to be valid.
- ParentModel does not valuate to anything. It is used only in model files to indicate that LoadModel should load the parentModel file first.
- parentModel must specify a valid model file following the ordinary rules for specifying model files in LoadModel.
- The Lagrangian from the parentModel file is added to the Lagrangian specified in the current/child model file.
- It is allowed for the parentModel file to point to a file that itself uses ParentModel to chain models together.
- LoadModel can modify parameters and options from both the current/child file and the parentModel, using the options ModelParameters and SetModelOptions.
- The following options can be given:
-
"Use Lagrangian" True specifies that the parentModel Lagrangian should be added to the Lagrangian specified in the current file.
Examples
open allclose allBasic Examples (1)
Tech Notes
▪