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
Thanks for developing this great toolbox! Besides its control functionalities, by utilizing eigen, cppad and cppadcg, the library serves as a perfect NLP framework!
I use the toolbox to solve an NLP. So far, I have inherited the DiscreteCostEvaluatorBase and DiscreteConstraintBase classes and filled the required values by calling DerivativesCppadJIT. As the next step, I wanted to do the same with DerivativesCppad and later by using generated C++ code.
I decided to start with autodiff and could fill eval(), evalGradient() and sparseHessianValues() methods. However, I didn't find any getSparsityPatternHessian() method for DerivativesCppad.
I checked cppad and apparently there is the ForSparseHes() function that can return the sparsity pattern. However, I couldn't understand arguments' corresponding variables in CT (please see this brach in my fork). I would appreciate if you could guide me on that.
Do you know if this function could fit? Filling the getSparsityPatternHessian() implementation is mandatory, as leaving it blank causes the solver to fail; my naive assumption on a dense Hessian matrix by default (i.e. all elements are filled) was wrong.
The text was updated successfully, but these errors were encountered:
Thanks for developing this great toolbox! Besides its control functionalities, by utilizing eigen, cppad and cppadcg, the library serves as a perfect NLP framework!
I use the toolbox to solve an NLP. So far, I have inherited the
DiscreteCostEvaluatorBase
andDiscreteConstraintBase
classes and filled the required values by callingDerivativesCppadJIT
. As the next step, I wanted to do the same withDerivativesCppad
and later by using generated C++ code.I decided to start with autodiff and could fill
eval()
,evalGradient()
andsparseHessianValues()
methods. However, I didn't find anygetSparsityPatternHessian()
method forDerivativesCppad
.I checked cppad and apparently there is the
ForSparseHes()
function that can return the sparsity pattern. However, I couldn't understand arguments' corresponding variables in CT (please see this brach in my fork). I would appreciate if you could guide me on that.Do you know if this function could fit? Filling the
getSparsityPatternHessian()
implementation is mandatory, as leaving it blank causes the solver to fail; my naive assumption on a dense Hessian matrix by default (i.e. all elements are filled) was wrong.The text was updated successfully, but these errors were encountered: