NatLabRockies / NatLabRockies/REopt_API

BAU problem infeasible with loads_kw_is_net = False in test

Open
#69 0 comments 0 reactions 1 assignee View on GitHub

@sakshi-mishra is already working on this.

Since Jun 26, 2020.

Dominant language
Python
Stars
125
Forks
68
Avg merge
1d 21h
Merged PRs (30d)
1

Description

In this test: https://github.com/NREL/REopt_Lite_API/blob/265f360aef174276a8970ba346cb7c7585e0c6a0/reo/tests/test_diesel_gen_sizing.py#L65
if you set

nested_data['Scenario']['Site']['LoadProfile']['loads_kw_is_net'] = False

the BAU problem becomes Infeasible.

The issue appears to be here:
https://github.com/NREL/REopt_Lite_API/blob/265f360aef174276a8970ba346cb7c7585e0c6a0/reo/src/load_profile.py#L670
where the sustain_hours result is 2 (hacking the sustain_hours to 0 makes the BAU problem feasible.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.