Closed pvir closed 1 month ago
I verified the error above. The problem is the val_graph optimizer requires <= comparison between Base types; see val_graph on https://cppad.readthedocs.io/latest/optimize.html#val-graph
It is not even being used by this example and so I should be able fix this.
Please try the master branch and see if your problem is fixed there. If it is, I will port the fix to the 2024 stable branch.
I think that I have fixed the problem with the commit https://github.com/coin-or/CppAD/commit/5bef0ad2fe56db9923678395ff6d0bae117a46f6 See the heading 05-12 on https://cppad.readthedocs.io/latest/2024.html#mm-dd-05-12
In particular, the following test is now passing: https://github.com/coin-or/CppAD/blob/master/test_more/general/base_complex.cpp
Thank you, my problem is fixed with this change also in the real use case.
The fix has been ported to the following release: https://github.com/coin-or/CppAD/releases/tag/20240000.5
I recreated this release on 1:20pm GMT because the workflows needed to be updated to work on the current github.
The following code fails with compilation error. This used to work with 20230000.0 but fails since 20240000.0:
Similar error occurs if I change one of the examples as follows:
Error:
err.txt