Skip to content

Commit

Permalink
Refactored conditional input statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Iago Cupeiro committed Jan 3, 2024
1 parent 81decbb commit 5c47043
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ model IdealProduction "Ideal production model which assumes a linear efficiency

equation

if use_TSet then
connect(TSet,TSetIn);
else
TSetIn = 0;
connect(TSet,TSetIn);
if not use_TSet then
TSet = 0;
end if;

connect(effExp.y,P) annotation(Line(points = {{41,-60},{110,-60}},color = {0,0,127}));
Expand Down

0 comments on commit 5c47043

Please sign in to comment.