8000 Evaluator by RudolfReiter · Pull Request #1402 · acados/acados · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Evaluator #1402

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

Merged
merged 24 commits into from
Jan 10, 2025
Merged

Evaluator #1402

merged 24 commits into from
Jan 10, 2025

Conversation

RudolfReiter
Copy link
Contributor
@RudolfReiter RudolfReiter commented Dec 16, 2024

Adding a basic evaluator that can be used to (I) evaluate closed-loop cost aligned with the acados definition and (II) to evaluate the full trajectory obtained from acados externally. Point two is mainly used for testing the one-step evaluation of (I).

Updating parameters in the solver after instantiation requires to call the "update_all" function of the evaluator to align the evaluator and the solver. Attention: Currently only parameters "p" and "p_global" are updated. Other (bounds, weights, and references) will follow.

Example minimal_example_evaluation.py tests the function on a pendulum.

The evaluator is in a preliminary phase and requires updates to be fully aligned with acados. Next steps:

  • Implement the possibility of updating the reference
  • Test multiphase formulations
  • Implement scaling
  • Implement convex over nonlinear costs

# Conflicts:
#	interfaces/acados_template/acados_template/acados_ocp_solver.py
@sandmaennchen
Copy link
Contributor

You should add your example here to make sure it is tested on CI

- name: Run Python tests that need new CasADi

.. also I think it would be good if the example would use parameters 🙈

@sandmaennchen sandmaennchen merged commit e37fe30 into acados:master Jan 10, 2025
14 checks passed
FreyJo added a commit to FreyJo/acados that referenced this pull request Mar 26, 2025
FreyJo added a commit that referenced this pull request Mar 26, 2025
- fix get_path_cost_expression for `CONVEX_OVER_NONLINEAR`, broken in
#1402
- fix also for terminal cost
- removed comments
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.

3 participants
0