RCAIDE.Framework.Optimization.Common.generate_carpet_plot
generate_carpet_plot#
- generate_carpet_plot(problem, design_input_1_index=0, design_input_2_index=1, number_of_points=5, generate_objective_plot=True, objective_plot_constraint_index=0, generate_constraint_plots=True, unit_labels=None)[source]#
Sweeps two design variables across their bounds and produces contour plots of the objective and constraints (carpet plots).
Assumptions: N/A
Source: N/A
Inputs: problem [Nexus] optimization problem design_input_1_index [int] column index of the first design variable to sweep design_input_2_index [int] column index of the second design variable to sweep number_of_points [int] number of evaluation points along each axis generate_objective_plot [bool] if True, plot the objective contour with constraint overlay objective_plot_constraint_index [int] index of the constraint to overlay on the objective plot generate_constraint_plots [bool] if True, plot a separate filled contour for every constraint unit_labels [list] optional unit strings aligned with problem.inputs rows,
e.g. [‘m²’, ‘km’, ‘nmi’]. If None, tag name only is shown.
Outputs: outputs.inputs [array] (2, number_of_points) swept variable values outputs.objective [array] (number_of_points, number_of_points) objective values outputs.constraint_val [array] (n_constraints, number_of_points, number_of_points) constraint values
Properties Used: N/A