-
Notifications
You must be signed in to change notification settings - Fork 1
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
Docs fixes and add to README #38
Conversation
Codecov Report
@@ Coverage Diff @@
## main #38 +/- ##
=======================================
Coverage 85.89% 85.89%
=======================================
Files 5 5
Lines 234 234
=======================================
Hits 201 201
Misses 33 33 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots more context 🎉 📖
README.md
Outdated
using HiGHS | ||
using JuMP | ||
|
||
system = SystemRT(components...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is components...
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have a bit more context now. The example model appears after a section describing all the components and here the names of the components are listed (although I still haven't included all the code needed to construct them).
README.md
Outdated
@constraint( | ||
model, | ||
energy_balance[t in datetimes], | ||
sum(model[:generation][u, t] for u in units) == sum(load(l, t) for l in axiskeys(load, 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does load
come from? or is this jump magic introducing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load
is defined above from get_load(system)
. It is a KeyedArray
so uses ()
for indexing by the names of the keys within the @constraint
definition.
README.md
Outdated
optimize!(model) | ||
``` | ||
|
||
## Additional Features of the System |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd maybe move this section first and drop the Additional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe Main
or Primary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
README.md
Outdated
|
||
The following is an example of how the data stored in a `SystemRT` object can be used to build a JuMP model. | ||
The objective of the model is to solve a simple energy balance problem, where a set of loads (demands) need to be met by generation (supply), for the minimum possible cost. | ||
Assume we have an instance of a system (see [`SystemRT`](@ref) for details of all the components in a `SystemRT`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the @ref
links don't work in a readme - replace these with stable docs links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Links are to the dev
docs for now, until I manage to fix the stable docs deployment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
using HiGHS | ||
using JuMP | ||
|
||
system = SystemRT( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just add a comment here on the simplifying assumption of this example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment, does it clarify things?
No description provided.