free_parameters
Stable function · Variable classification
Tier: stable · Kind: function · Topic: Variable classification
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
| not exported | freeParameters | free_parameters | free_parameters | not exported |
Julia
Julia does not export this function.
TypeScript
function freeParameters(expr: Expr, model: Model): Set<string>
Extract free parameters from an expression within a model context
Parameters
expr— Expression to analyzemodel— Model context to determine parameter vs state variables
Returns
Set of parameter names referenced in the expression
Python
free_parameters(expr: Expr, model: Model) -> set[str]
Extract free parameters from an expression.
A parameter is a free variable that has type=“parameter” in the model.
Parameters
expr(Expr) — Expression to analyzemodel(Model) — Model containing variable type information
Returns
set[str]— Set of parameter names found in the expression
Rust
pub fn free_parameters(expr: &Expr) -> HashSet<String>
Extract all free parameters from an expression
This is currently the same as free_variables since we don’t distinguish parameters from variables at the expression level.
Arguments
expr- The expression to analyze
Returns
- Set of parameter names referenced in the expression
Go
Go does not export this function.