Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Test cyclical price calculation with more complex cycles

Open
#1,338 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
testing

Research direction

Start with the existing circularity example and its current tests, then run the model for the first year to avoid the investment-algorithm limitation described in #1089. Add a regression case with more than two cyclic nodes, such as gas extraction requiring electricity, and verify that cyclical price calculation completes with the expected result.

Written by the indexing model from the issue text.

Description

We should add a regression test containing a cycle with more than 2 nodes. Easiest approach would be to just add one or more extra flows to the existing circularity example (e.g. gas extraction requires electricity).

A problem with this currently is that most complex cycles fail due to limitations with the investment algorithm (discussed in #1089).

A couple of approaches:

  • run the model only for the first year, as no investments take place in the first year
  • wait until we fix the issues with investments
Dominant language
Rust
Stars
8
Forks
5
Avg merge
11h 31m
Merged PRs (30d)
33

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EnergySystemsModellingLab/MUSE2

All issues in EnergySystemsModellingLab/MUSE2

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.