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

Improve examples/optimal_feedback_control_example.jl #10

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

jake-levy
Copy link
Member

@jake-levy jake-levy commented Jan 4, 2023

Improves the optimal_feedback_control_example by warm starting the solver and changes options to speed up the calculation. Time to solve decreased from ~1100 ms to ~450 ms.

Addresses #9

@jake-levy jake-levy self-assigned this Jan 4, 2023
@jake-levy
Copy link
Member Author

Note, to run solver and ensure state feedback data is received correctly, start Julia with at least two threads and call the solver with:

commands, trajectory = fetch(Threads.@spawn solve!(model,feedback_state,warm_start))

This is required since one thread is used for receiving feedback data. This requirement will be removed when #8 is fixed.

@jake-levy jake-levy merged commit ef4ae2f into main Jan 4, 2023
@jake-levy jake-levy deleted the improve-opt-ex branch January 4, 2023 00:51
@jake-levy jake-levy linked an issue Jan 4, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warm start example solver
1 participant