I’m using the Python interface. I’m currently implementing a NMPC with Acados and I would like the tolerance of the solver to depend on my problem’s iterations. However when setting:
in general, it is not possible to interact with the AcadosOcpSolver by setting things in AcadosOcpSolver.AcadosOcp. AcadosOcp is just an object for the formulation, probably one should even forbid changing stuff inside AcadosOcpSolver.AcadosOcp by making it private.
Modifying the tolerance after creation should be done via the options_set() routine.
I will add this soon and write here again.
Yes, one would have to add this option for Python.
The only thing it can only store iteration information for the max_iter it was created with.
So if you increase it afterwards you might not get the statistics of the last iterations.