Search found 3 matches

by bfsantoro
5 months ago
Forum: API
Topic: Reusing a model instance in different function calls
Replies: 6
Views: 670

Re: Reusing a model instance in different function calls

Dear Clemens, I have attached an example of a workaround that I implemented instead of the solution that I was looking for. I hope this will make my intention clearer. The main problem is that I do not know beforehand what will be the values to be modified in the future, because they are calculated ...
by bfsantoro
5 months ago
Forum: API
Topic: Reusing a model instance in different function calls
Replies: 6
Views: 670

Re: Reusing a model instance in different function calls

Dear Clemens, Thank you for your advice. From my understanding of such example, I was able to write the attached piece of code, where instead of just calling ws.add_checkpoint() to add a new checkpoint, I can reuse a previous one. However, this does not solve my problem because the commands in lines...
by bfsantoro
5 months ago
Forum: API
Topic: Reusing a model instance in different function calls
Replies: 6
Views: 670

Reusing a model instance in different function calls

Dear all, I am implementing a model predictive controller, which means that I have to solve as fast as possible a series of optimization problems with the same structure but with different data. I have successfully adapted the example of Python API library (transport11.py) to change a parameter in m...