Include autoscaling capability
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenMDAO/dymos
-
docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Need a way to set_solver_print on the subprobem when using a shooting transcription.Forse di nuovo libera @robfalck l’ha presa 608 giorni fa e non c’è nessuna pull request aperta. Aperta
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
Tutte le issue di OpenMDAO/dymos
Issue simili
-
Test: to_hijri() accepts datetime.datetime and uses only the date partForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertagood first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno