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

use trip instance when adding trip to rotation #230

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Conversation

stefansc1
Copy link
Collaborator

Instead of generating trip from dict.

Move rotation charge type setting/checking to schedule. Change optimization.recombination to use trip instances instead of dictionaries, rewritten to avoid problems with idle_consumption. Also remove optimizer_util.get_buffer_time, use util.get_buffer_time instead.

stefan.schirmeister added 2 commits December 5, 2024 15:41
Instead of generating trip from dict.
Move rotation charge type setting/checking to schedule.
Change optimization.recombination to use trip instances instead of dictionaries.
Also remove optimizer_util.get_buffer_time, use util.get_buffer_time instead.
Copy link
Collaborator

@PaulScheerRLI PaulScheerRLI left a comment

Choose a reason for hiding this comment

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

Looks good.
See comment for suggestion, which should be considered, when very large schedules are optimized

simba/optimization.py Outdated Show resolved Hide resolved
@stefansc1 stefansc1 merged commit fba55d1 into dev Dec 10, 2024
6 checks passed
@stefansc1 stefansc1 deleted the refactor/add_trip branch December 10, 2024 15:01
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