Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in SWHS Output Constraint #2135

Closed
JacquesCarette opened this issue May 24, 2020 · 2 comments
Closed

Error in SWHS Output Constraint #2135

JacquesCarette opened this issue May 24, 2020 · 2 comments
Assignees

Comments

@JacquesCarette
Copy link
Owner

While working on issue #1030 I noticed an error in the output constraint of SWHS (https://jacquescarette.github.io/Drasil/examples/SWHS/srs/SWHS_SRS.html#IM:eBalanceOnWtr) for one of the IMs.
Screen Shot 2020-05-24 at 11 33 46
The point is that the output is the function T_W while the constraint is on time t, which isn't part of the output.

That 'constraint' is really part of the type of T_W (its domain).

This 'bug' appears to be present in other Instance Models too.

@JacquesCarette
Copy link
Owner Author

I have removed this constraint (and 4 more like it). They are not output constraints. They are type constraints on (here) T_W, as it is a function (of time) rather than a constant. Our modelling of functions, especially of time, is extremely sloppy.

This occurs 3 times in SWHS and once in NoPCM.

@smiths
Copy link
Collaborator

smiths commented May 26, 2020

@JacquesCarette, I agree with the removal. The constraint on t wasn't anywhere in the manual version of the case studies. It doesn't make sense to include it as an output constraint here, because t is not an output. I agree that our handling of types is sloppy.

I think we can close this issue. It is assigned to me, but I don't see anything else that needs to be done.

Rather than consider T_W a real number, it would be great if we could consider it a function from real to real. I think we already have issues that deal with improving our use of types in Drasil.

@smiths smiths closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants