Include autoscaling capability

Aperta
#271 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with dymos.run_problem and the linked autoscaling/examples/brach/opt_brach.py workflow; review how the current refinement path invokes run_model and run_driver and how the Jacobian and bounds pickle files are used. Done means PJRN and ISO options are integrated with the proposed API, existing refinement behavior is preserved, and the brachistochrone example no longer needs the pickle files.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary of Issue

Merge autoscaling capability into dymos.

Issue Type
  • Bug
  • Enhancement
Description

ISO Scaling and PJRN scaling techniques originally published by Sagliano et. al. (https://elib.dlr.de/93327/1/Performance_analysis_of_linear_and_nonlinear_techniques.pdf) and tested with Dymos by Harvey Weyandt (https://github.com/robfalck/autoscaling) should be merged into the Dymos codebase.

The dymos.run_problem function, which is currently used to facilitate grid refinement of a Dymos problem, should be expanded to include automatic scaling.

The proposed signature of run_problemis:

def run_problem(problem, refine=False, refine_iteration_limit=10, autoscaling=None)

By default, autoscaling=None attempts no automatic scaling of the problem. Other possible values for autoscaling are 'pjrn' or 'iso' (case insensitive).

The behavior of run_problem should change such that, if autoscaling is not None, then run_model is invoked to finalize setup, followed by a calculation of the necessary inputs for the autoscaling. Once complete, the driver will be run with the appropriate scaling and, if necessary, the refinement algorithm will proceed as it currently does.

Example

For example, the current implementation for the brachistochrone at https://github.com/robfalck/autoscaling/blob/master/autoscaling/examples/brach/opt_brach.py should now be the same, but the lines:

    with open('total_jac_info.pickle', 'rb') as file:
        jac = pickle.load(file)
    with open('lower_bounds_info.pickle', 'rb') as file:
        lbs = pickle.load(file)
    with open('upper_bounds_info.pickle', 'rb') as file:
        ubs = pickle.load(file)

    sc = PJRNScaler(jac, lbs, ubs)
    autoscale(prob, autoscaler=sc)
    prob.run_driver()

will be replaced with

    dm.run_problem(autoscale='PJRN')

We should also do whatever necessary to remove the need to pickle the jacobian and bounds information.

Environment

N/A

Lingua principale
Python
Stelle
310
Fork
82
Merge medio
5g 1h
PR unite (30g)
6

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMDAO/dymos

Tutte le issue di OpenMDAO/dymos

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.