Is it possible to update the model online? So for example If I am learning a model, can I update the model used by the solver using an external python function maybe? I checked the interface but couldn’t find something to help me. Thanks in advance.
what exactly do you mean with
model? The dynamics of your system? You can parameterize your model and pass the parameters in every solver call as additional arguments.
Have a look at the MHE example about how to use the syntax:
This file has been truncated.
# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,
# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,
# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,
# Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl
# This file is part of acados.
# The 2-Clause BSD License
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
Yes this is very helpful thank you for the example and sorry for my late reply.