hierachical parameter mapping #72
-
|
Hi,
My question is whether it is allowed to provide the value of Param1 in the higher level overriding the component level value Param1=7? prefix="subsystem." Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi Masoud, as you say, you can provide parameter bindings at a higher level, which override parameter bindings provided for the lower level; however there is no mechanism to override parameter values independently; i.e. if you provide a parameter in a different parameter binding, the parameter mapping taking place in the lower level will not access that parameter source as part of its parameter binding. So in your example, the Param1 parameter value you provide at top-level will not bind to anything, and will definitely not influence the lower-level parameter binding, i.e. it will not have any effect. Regs, Pierre. |
Beta Was this translation helpful? Give feedback.
-
|
In many applications, having a single parameter to control the internal parameters of lower-level FMUs can be highly beneficial. Take, for example, a battery pack composed of 1000 cells, where each cell is modeled by the same FMU. If we want to adjust a parameter uniformly across all cells at the battery pack level, the standard approach in SSP would require defining 1000 individual parameter sets in the parameter bindings which is an impractical and cumbersome process (Unless there is another way in SSP that I am not aware of). In our inhouse modeling application, we introduce a parameter 𝑃1, which is bound to the corresponding parameters in each internal FMU. This allows us to modify P1 at the system level, effectively propagating the change across all 1000 FMUs. This method greatly simplifies parameter management and enhances model scalability. |
Beta Was this translation helpful? Give feedback.
Hi Masoud,
as you say, you can provide parameter bindings at a higher level, which override parameter bindings provided for the lower level; however there is no mechanism to override parameter values independently; i.e. if you provide a parameter in a different parameter binding, the parameter mapping taking place in the lower level will not access that parameter source as part of its parameter binding.
So in your example, the Param1 parameter value you provide at top-level will not bind to anything, and will definitely not influence the lower-level parameter binding, i.e. it will not have any effect.
Regs, Pierre.