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

Refactor CollInt to allow reuse of all but constant inputs and parameters #1119

Open
SGeeversAtVortech opened this issue Aug 17, 2019 · 0 comments

Comments

@SGeeversAtVortech
Copy link
Contributor

In GitLab by @vreeken on Aug 17, 2019, 18:29

For many optimization problems, the only thing that ever changes are constant inputs and parameters. All other things, constraints, goals, etc, do not change. We can gain a significant speed up for certain large problems (or low latency problems) if we can reuse the discretized problem as e.g. an MXFunction, and then call it with the new set of constant inputs and parameters.

I am not sure if this is at all possible, desirable, or worth the effort (time saved in collocating).

For large (linear) problems we might even want to cache part of the Jacobian, but I'm not sure if it makes sense to express it as a function of the constant inputs/parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant