Skip to content

Local balance does not consider type #3763

@henrikt-ma

Description

@henrikt-ma

This model is currently considered completely locally balanced:

model LocalImbalanceByType

  model A "Currently locally balanced model"
    Real x;
    Boolean b;
    Boolean c;
  equation
    b = c; // Boolean equation
    x + (if b then 1.0 else 2.0) = 0; // Real equation
    x + (if c then 1.0 else 2.0) = 0; // Real equation
  end A;

  A a;

end LocalImbalanceByType;

However, I would like to be able to reject this with support in the specification to say that it is locally imbalanced for both Boolean and Real types in the component a.

Am I missing something when I think it should be possible to do separate counting for Real and Integer?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions