Version: dev

free_parameters

Stable function · Variable classification

Tier: stable · Kind: function · Topic: Variable classification

JuliaTypeScriptPythonRustGo
not exportedfreeParametersfree_parametersfree_parametersnot 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 analyze
  • model — Model context to determine parameter vs state variables

Returns

Set of parameter names referenced in the expression

Source

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 analyze
  • model (Model) — Model containing variable type information

Returns

  • set[str] — Set of parameter names found in the expression

Source

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

Source · Rust docs

Go

Go does not export this function.