You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new TracerSparsityDetector from SparseConnectivityTracer, if blocks are not supported if they involve an input variable. They must be replaced with ifelse statements, which are compatible with operator overloading.
In your objective functions or constraints, do not write
Can one turn off sparsity detection? (Or better, turn off sparsity altogether.) I have a problem where the Hessian is not very sparse and the objective function uses PDMats.jl, which involves representing matrices via their Cholesky factorization. I get errors like
If you don't use the Hessian, then this works as well:
nlp = ADNLPModel(f, x0, hessian_backend = ADNLPModels.EmptyADbackend)
nlp = ADNLPModel(f, x0, matrix_free = true) # is an alternative that skip Hessian and Jacobian computation
With the new
TracerSparsityDetector
from SparseConnectivityTracer,if
blocks are not supported if they involve an input variable. They must be replaced withifelse
statements, which are compatible with operator overloading.In your objective functions or constraints, do not write
but instead write
Related:
The text was updated successfully, but these errors were encountered: