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

Thermal heuristic #45

Open
wants to merge 93 commits into
base: main
Choose a base branch
from
Open

Thermal heuristic #45

wants to merge 93 commits into from

Conversation

Juliette-Gerbaux
Copy link
Contributor

No description provided.

src/andromede/simulation/optimization.py Show resolved Hide resolved
src/andromede/simulation/optimization.py Show resolved Hide resolved
src/andromede/study/data.py Outdated Show resolved Hide resolved
src/andromede/study/data.py Outdated Show resolved Hide resolved
src/andromede/study/data.py Outdated Show resolved Hide resolved
tests/unittests/thermal_heuristic/test_model.py Outdated Show resolved Hide resolved
tests/unittests/thermal_heuristic/test_model.py Outdated Show resolved Hide resolved
model_editer = ModelEditor(model("model"))

expression_1 = var("x").sum() + var("y")
expression_2 = (
Copy link
Contributor

Choose a reason for hiding this comment

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

Test with model_editer.variable_in_expression(param("pmax"), ["p"])

assert status == pywraplp.Solver.OPTIMAL
assert resolution_step_2.solver.Objective().Value() == pytest.approx(84010)

expected_output = ExpectedOutput(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Factoriser les entrées

assert status == pywraplp.Solver.OPTIMAL

thermal_problem_builder.update_database_heuristic(
OutputValues(resolution_step_heuristic),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sortir la récupération des données d'entrée de la fonction update

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