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

Docs fixes and add to README #38

Merged
merged 7 commits into from
Mar 1, 2023
Merged

Docs fixes and add to README #38

merged 7 commits into from
Mar 1, 2023

Conversation

BSnelling
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Merging #38 (c7e4771) into main (d728a72) will not change coverage.
The diff coverage is n/a.

@@           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.

Copy link

@mcmcgrath13 mcmcgrath13 left a 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...)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is components... here?

Copy link
Member Author

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))

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?

Copy link
Member Author

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

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

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

Copy link
Member Author

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`).

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

Copy link
Member Author

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.

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(

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

Copy link
Member Author

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?

@BSnelling BSnelling merged commit 4d87749 into main Mar 1, 2023
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

Successfully merging this pull request may close these issues.

2 participants