-
Notifications
You must be signed in to change notification settings - Fork 19
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
Return Interpolated Value Functions #82
Comments
This should probably just use |
Hey, I've been using InfiniteOpt.jl for a race car track minimum time optimal control problem and it does really well! I'm pleased with the results and the interface is very intuitive! However, my next task is to extract the optimal control trajectory from InfiniteOpt and pass it through an MTK model to validate that the control will indeed predictably keep the lap time to a minimum in an external model. I'm using OpenMDAO's example as a benchmark to test against. They use a GaussLobatto orthogonal collocation scheme of degree 3. In my Julia code, I use this in the @infinite_parameter like this:
My question is, when I extract the optimal control using |
Hi @shobhitvoleti. Using the The unexpected behavior you are seeing is likely because the collocation introduces additional degrees of freedom to the control variables. To resolve this, you can use import Pkg
Pkg.add(url = "https://github.com/infiniteopt/InfiniteOpt.jl", rev = "master") |
We should build in some interpolation functionality to automatically construct start value functions and optionally return infinite variable solutions as functions.
The text was updated successfully, but these errors were encountered: