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

documentation: ProcessScheduler #777

Merged
merged 76 commits into from Aug 3, 2023

Conversation

victorgarcia98
Copy link
Contributor

@victorgarcia98 victorgarcia98 commented Jul 28, 2023

Description

This PR adds an extension of the toy tutorial using the ProcessScheduler. Moreover, it splits the first page of the toy-tutorial into a page for the setup and another for scheduling the battery.

Related Items

#768

FlexMeasures/screenshots#2

#729


  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…test.py

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…port shiftable.

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
… only when optimizing a INFLEXIBLE or SHIFTABLE load type.

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Just some quick notes from a quick read (I'm sorry to say I haven't been keeping myself up to date on the ProcessScheduler work, although I did see the name change, which I like).

Also, the pictures for the flexible loads would look better if their power sensors would define consumption in the positive direction. I believe we already have a dedicated attribute for that, something like consumption_is_positive.

documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Great work!

I like your writing style :)

I found some improvements and inconsistencies.

documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-from-scratch.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-expanded.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98
Copy link
Contributor Author

Also, the pictures for the flexible loads would look better if their power sensors would define consumption in the positive direction. I believe we already have a dedicated attribute for that, something like consumption_is_positive.

Good idea!

An alternative would to store the results of the schedule in negative.

I tried to use this attribute but, apparently, it's not taking effect. consumption_is_positive is being used only in the function get_power_values, which is later used by the StorageScheduler.

Base automatically changed from feature/cli/trigger_shiftable_load to main August 1, 2023 16:31
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…ion, not when the entity already exist

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Thanks for the improvements, already very good.

documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
documentation/tut/toy-example-process.rst Outdated Show resolved Hide resolved
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@nhoening
Copy link
Contributor

nhoening commented Aug 3, 2023

It doesn't look like there have been new commits?

…orial' into documentation/shiftable_load_tutorial
@victorgarcia98
Copy link
Contributor Author

I pushed b58f077 commit, please let me know if you are able to see it 😄

Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Awesome!

@victorgarcia98 victorgarcia98 merged commit fcf77be into main Aug 3, 2023
4 checks passed
@victorgarcia98 victorgarcia98 deleted the documentation/shiftable_load_tutorial branch August 3, 2023 09:34
@Flix6x Flix6x added this to the 0.15.0 milestone Aug 3, 2023
@victorgarcia98 victorgarcia98 mentioned this pull request Aug 3, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Scheduling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants