RCAIDE.Framework.Optimization.Common.generate_line_plot
generate_line_plot#
- generate_line_plot(problem, design_input_1_index=0, number_of_points=5, plot_objective=True, plot_constraint=True, unit_labels=None)[source]#
Sweeps one design variable across its bounds and produces line plots of the objective and constraints.
Assumptions: N/A
Source: N/A
Inputs: problem [Nexus] optimization problem design_input_1_index [int] column index of the design variable to sweep number_of_points [int] number of evaluation points along the sweep plot_objective [bool] if True, plot the objective vs the swept variable plot_constraint [bool] if True, plot each constraint vs the swept variable 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,) objective values outputs.constraint_val [array] (n_constraints, number_of_points) constraint values
Properties Used: N/A