Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 594 Bytes

demo5.rst

File metadata and controls

28 lines (17 loc) · 594 Bytes

Run optimization

If running optimization not by simple_run() method, another approach should be utilized.

# generate input file for optimization
oc_ins.gen_dakota_input()

# run optimization
oc_ins.run(mpi=True, np=4)

Below is a typical user customized script to find the optimized correctors configurations.

../../snippets/demo5.py

The following figure shows correct the orbit to different reference orbits.

image