From 7d41596eb1ed542c386f83d433a2dbe2d4d3a87c Mon Sep 17 00:00:00 2001 From: Abodi Massarwa Date: Tue, 2 Jul 2024 23:00:43 +0300 Subject: [PATCH] added runtime plotting for better results increase the range of agents/categories/whatever variable complicates the computation :) --- .../compare_heterogeneous_matroid_constraints_algorithms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/experiments/compare_heterogeneous_matroid_constraints_algorithms.py b/experiments/compare_heterogeneous_matroid_constraints_algorithms.py index 8542b78..097105e 100644 --- a/experiments/compare_heterogeneous_matroid_constraints_algorithms.py +++ b/experiments/compare_heterogeneous_matroid_constraints_algorithms.py @@ -130,6 +130,7 @@ def run_experiment(equal_capacities:bool,equal_valuations:bool,binary_valuations experiments_csv.logger.setLevel(logging.INFO) #compare_heterogeneous_matroid_constraints_algorithms_egalitarian_utilitarian() - #experiments_csv.single_plot_results('results/egalitarian_utilitarian_comparison_heterogeneous_constraints_algorithms.csv',filter={},x_field='num_of_agents',y_field='ratio_egalitarian',z_field='algorithm',save_to_file='results/egalitarian_comparison_heterogeneous_constraints_algorithms.png') - experiments_csv.single_plot_results('results/egalitarian_utilitarian_comparison_heterogeneous_constraints_algorithms.csv',filter={},x_field='num_of_agents',y_field='ratio_utilitarian',z_field='algorithm',save_to_file='results/utilitarian_comparison_heterogeneous_constraints_algorithms.png') + #experiments_csv.single_plot_results('results/egalitarian_utilitarian_comparison_heterogeneous_constraints_algorithms.csv',filter={},x_field='num_of_agents',y_field='ratio_egalitarian',z_field='algorithm',save_to_file='results/egalitarian_comparison_heterogeneous_constraints_algorithms.png') # egalitarian ratio plot + #experiments_csv.single_plot_results('results/egalitarian_utilitarian_comparison_heterogeneous_constraints_algorithms.csv',filter={},x_field='num_of_agents',y_field='ratio_utilitarian',z_field='algorithm',save_to_file='results/utilitarian_comparison_heterogeneous_constraints_algorithms.png') # utilitarian ratio plot + #experiments_csv.single_plot_results('results/egalitarian_utilitarian_comparison_heterogeneous_constraints_algorithms.csv',filter={},x_field='num_of_agents',y_field='runtime',z_field='algorithm',save_to_file='results/runtime_comparison_heterogeneous_constraints_algorithms.png') # runtime plot