Skip to content
Snippets Groups Projects
Commit bd54324c authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Everything is Topology now

parent 842991f7
No related branches found
No related tags found
No related merge requests found
......@@ -26,11 +26,11 @@ import os
import pyomo.environ as pyo
from pyomo.opt import SolverStatus, TerminationCondition
def pareto_analysis(entity, strategy):
def pareto_analysis(topology, strategy):
if len(strategy) != 2:
raise ValueError('Pareto analysis can only be done with two strategies!')
model = entity._topology.build_model(entity._name, entity._dynamic)
model = topology.build_model(topology._name, topology._dynamic)
model = model.block
strategy_names = list(strategy.keys())
......@@ -97,4 +97,4 @@ def pareto_analysis(entity, strategy):
plot.grid(True)
plot.xlabel(strategy_name_1)
plot.ylabel(strategy_name_2)
plot.savefig('output_files/' + entity._name + '_pareto_front.png')
\ No newline at end of file
plot.savefig('output_files/' + topology._name + '_pareto_front.png')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment