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

Create type and structs to abstract dynamics and costs beyond LQ assumptions. #35

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

hmzh-khn
Copy link
Collaborator

Introduces a number of new types and structs to allow for loosening of LQ assumptions in future code.

  • Cost, QuadraticCost, NonQuadraticCost
  • Dynamics, LinearDynamics, NonlinearDynamics

Implements expected interfaces for the Cost and Dynamics classes and abstracts the unrolling functions to use them. Also adjust calls to these types/structs elsewhere in the code and passes all tests.

This will be needed for future work that takes in games with non-LQ dynamics and costing.

This helps implement #16.

I should probably implement better tests for this, but have only included a todo for now. An issue is made here:

src/DynamicsUtils.jl Outdated Show resolved Hide resolved
src/DynamicsUtils.jl Outdated Show resolved Hide resolved
@hmzh-khn hmzh-khn merged commit b2aab6f into main Nov 29, 2022
@hmzh-khn hmzh-khn deleted the hmzh/utils-refactor branch December 2, 2022 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant