Skip to content

Conversation

jackvreeken
Copy link
Collaborator

Relevant with something like

    def compiler_options(self):
        options = super().compiler_options()
        options["replace_parameter_expressions"] = False
        options["resolve_parameter_values"] = False
        return options
  • Test with symbolic parameters in model, e.g.
parameter Real a = 2.0;
parameter Real b = 10.0;
parameter Real ub = a * b;

Real x(max=ub);

The `substitute_in_external` function expects `values` to be a list of
values, not a `ca.MX` symbol.
… values

Complicated symbolic MX expressions including function calls do not
resolve well to something that can be checked for 'is_constant()' (e.g.
in ModelicaMixin). Expanding the function helps with this, at a slight
overhead.
@jarsarasty jarsarasty added this to the 2.8 milestone Jun 25, 2025
@jarsarasty jarsarasty added the bug Something isn't working label Jun 25, 2025
@jarsarasty jarsarasty requested a review from Ailbhemit July 15, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants