Skip to content

Structural variability #3695

@qlambert-pro

Description

@qlambert-pro

Consider the following model, reduced from models in the Buildings library.

model VariableVariableVariability
  parameter Boolean b = false;
  Real y;
equation
  if b then
    when time > 3 then
      y = 2;
    end when;
  else
    y = time;
  end if;
  annotation(
    experiment(
      StopTime = 1.0
    )
  );
end VariableVariableVariability;

The variability to y depends on the value of b.
Is it valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationSpecification of feature is unclear, but not incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions