slack variables vs. differentiable approximations #528
-
|
As per my quick tests the latest version of #476 converges much better than the previous one. Hence my question: Of course I think, it is very good that opty can handle slack variables! Update
Overall in this simulation the results look similar to me, with the differentiable method more "forgiving", |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The question is always whether a model simulates reality sufficiently for your purposes and then there are other needs like computational efficiency. Your question as posed isn't really answerable because modeling decisions reflect the problem you are solving and the physical thing you are simulating. Using smoothed discontinuities in the dynamics may be a justifiable modeling choice in certain cases and in some cases it isn't. |
Beta Was this translation helpful? Give feedback.
-
|
Makes sense, so in a way the end justifies the means. |
Beta Was this translation helpful? Give feedback.
The question is always whether a model simulates reality sufficiently for your purposes and then there are other needs like computational efficiency. Your question as posed isn't really answerable because modeling decisions reflect the problem you are solving and the physical thing you are simulating. Using smoothed discontinuities in the dynamics may be a justifiable modeling choice in certain cases and in some cases it isn't.