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

Validation for MPC #21

Open
EserSteffen opened this issue Dec 11, 2024 · 1 comment
Open

Validation for MPC #21

EserSteffen opened this issue Dec 11, 2024 · 1 comment

Comments

@EserSteffen
Copy link
Collaborator

It seems MPC validation is a bit outdated. For example, if inputs are incomplete an error might not be raised anymore, raising casadi errors instead. The user should not be confronted with casadi as much as possible

@FWuellhorst
Copy link

An example:
If you pass a CasadiInput to the list of states, you get

  File "D:\05_Programme\anaconda\envs\BESRules\lib\site-packages\agentlib\core\model.py", line 186, in __getattr__
    raise AttributeError(
AttributeError: 'MPC' object has no attribute 'differentials' 

Even though the property exists. Calling the property would raise "CasadiInput has no attribute ODE", not sure why this is not the message one gets.

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

No branches or pull requests

2 participants