mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-02-28 20:06:19 +00:00
Adds inverter AC/DC efficiency and break-even penalty (#888)
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
* feat: add inverter AC/DC efficiency and break-even penalty * test: update tests/test_geneticoptimize.py with new ac_charge_break_even parameter * docs: update documentation * chore: update version numbers in configuration files to v0.2.0.dev2602272006923535
This commit is contained in:
committed by
GitHub
parent
04420e66ab
commit
3ccc25d731
@@ -38,17 +38,20 @@ def compare_dict(actual: dict[str, Any], expected: dict[str, Any]):
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"fn_in, fn_out, ngen",
|
||||
"fn_in, fn_out, ngen, break_even",
|
||||
[
|
||||
("optimize_input_1.json", "optimize_result_1.json", 3),
|
||||
("optimize_input_2.json", "optimize_result_2.json", 3),
|
||||
("optimize_input_2.json", "optimize_result_2_full.json", 400),
|
||||
("optimize_input_1.json", "optimize_result_1.json", 3, 0),
|
||||
("optimize_input_2.json", "optimize_result_2.json", 3, 0),
|
||||
("optimize_input_2.json", "optimize_result_2_full.json", 400, 0),
|
||||
("optimize_input_1.json", "optimize_result_1_be.json", 3, 1),
|
||||
("optimize_input_2.json", "optimize_result_2_be.json", 3, 1),
|
||||
],
|
||||
)
|
||||
def test_optimize(
|
||||
fn_in: str,
|
||||
fn_out: str,
|
||||
ngen: int,
|
||||
break_even: int,
|
||||
config_eos: ConfigEOS,
|
||||
is_finalize: bool,
|
||||
):
|
||||
@@ -69,7 +72,8 @@ def test_optimize(
|
||||
"individuals": 300,
|
||||
"generations": 10,
|
||||
"penalties": {
|
||||
"ev_soc_miss": 10
|
||||
"ev_soc_miss": 10,
|
||||
"ac_charge_break_even": break_even,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user