Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization history plot in dashboard has formatting and interaction issues #523

Open
hschilling opened this issue Sep 9, 2024 · 0 comments · May be fixed by #579
Open

Optimization history plot in dashboard has formatting and interaction issues #523

hschilling opened this issue Sep 9, 2024 · 0 comments · May be fixed by #579
Assignees
Labels
bug Something isn't working

Comments

@hschilling
Copy link
Member

hschilling commented Sep 9, 2024

Description

The Optimization -> History plot in the dashboard has formatting and usability issues.

  1. No units on the X axes
  2. Legend is not in an optimum location
  3. The list of variables on the left overlaps the Y axis labels
  4. There is a huge amount of blank space below the plot on the page
  5. The list of variables on the left can be long. Need to find a way to deal with that. You have to scroll down the list and you lose the view of the plot
  6. Very slow response times
  7. After a few variable selections, they stop working

See this image to see some of the formatting issues:

Screenshot 2024-09-09 at 4 14 04 PM

Example

Run this script


from aviary.interface.methods_for_level2 import AviaryProblem
from aviary.variable_info.enums import Verbosity
from aviary.interface.default_phase_info.two_dof import phase_info as two_dof_phase_info


prob = AviaryProblem()

local_phase_info = deepcopy(two_dof_phase_info)
prob.load_inputs('aviary/models/test_aircraft/converter_configuration_test_data_GwGm.csv', local_phase_info)

prob.check_and_preprocess_inputs()
prob.add_pre_mission_systems()
prob.add_phases()
prob.add_post_mission_systems()
prob.link_phases()
prob.add_driver("SLSQP", max_iter=20, verbosity=Verbosity.QUIET)
prob.add_design_variables()
prob.add_objective()
prob.setup()
prob.set_initial_guesses()

prob.recording_options['record_inputs'] = True
prob.recording_options['record_outputs'] = True

prob.run_aviary_problem("dymos_solution.db", optimization_history_filename='driver_history.db', make_plots=True)```

and then run 

`aviary dashboard model_with_strut`




### Aviary Version

0.9.4-dev

### Relevant environment information

_No response_
@hschilling hschilling added the bug Something isn't working label Sep 9, 2024
@hschilling hschilling self-assigned this Sep 9, 2024
@hschilling hschilling linked a pull request Oct 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant