From 6d6d0b8bc2c1a7916bf41d828841f8d7608830ff Mon Sep 17 00:00:00 2001 From: rebeccamccabe Date: Thu, 9 Nov 2023 22:24:37 -0500 Subject: [PATCH] pareto front plot changes for maha princeton talk --- .../multiobjective/pareto_curve_heuristics.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mdocean/optimization/multiobjective/pareto_curve_heuristics.m b/mdocean/optimization/multiobjective/pareto_curve_heuristics.m index 4e0d7ac6..7c02558c 100644 --- a/mdocean/optimization/multiobjective/pareto_curve_heuristics.m +++ b/mdocean/optimization/multiobjective/pareto_curve_heuristics.m @@ -70,7 +70,7 @@ function pareto_curve_heuristics() P_var_solar = 125; % balanced design - [~,idx_balanced] = min(abs(Pvar-40)); + [~,idx_balanced] = min(abs(Pvar-100)); LCOE_balanced = LCOE(idx_balanced); P_var_balanced = Pvar(idx_balanced); @@ -126,32 +126,32 @@ function pareto_curve_heuristics() if showSingleObj text(LCOE(idx_best_LCOE)+.03,Pvar(idx_best_LCOE),'Cheapest','FontSize',sz) text(LCOE(idx_best_Pvar)+.03,Pvar(idx_best_Pvar)-3,'Least Variable','FontSize',sz) - text(LCOE_balanced+.02,P_var_balanced+5,'Balanced Design','FontSize',sz) + text(LCOE_balanced-.15,P_var_balanced+5,'Balanced Design','FontSize',sz) end if showImages mini_plot_size = [.2 .22]; % small corner pictures of best geometries % upper left - axes('Position',[.28 .7 mini_plot_size]) + axes('Position',[.28 .6 mini_plot_size]) box on visualize_geometry(x_best_LCOE,p,true); set(gca,'XTickLabel',[],'YTickLabel',[]) % lower right - axes('Position',[.52 .15 mini_plot_size]) + axes('Position',[.51 .23 mini_plot_size]) box on visualize_geometry(x_best_Pvar,p,true); set(gca,'XTickLabel',[],'YTickLabel',[]) % balanced - axes('Position',[.22 .25 mini_plot_size]) + axes('Position',[.10 .28 mini_plot_size]) box on visualize_geometry(x_balanced,p,true); set(gca,'XTickLabel',[],'YTickLabel',[]) % RM3 - axes('Position',[.7 .5 mini_plot_size]) + axes('Position',[.7 .53 mini_plot_size]) box on visualize_geometry(x_nom,p,true); set(gca,'XTickLabel',[],'YTickLabel',[])