Hello!
In MPC.jl, I have a getinfo methods that return additional information about an optimum, to troubleshoot non-converging optimization or performance issues. It includes the Jacobians of the constraints and the Hessian of the Langrangian at the optimum.
I understand that the evaluated number of colors at preparation can give some information on the performances of sparse differentiation. Hence, I would like to include the number of colors for all the sparse differentiation matrices in getinfo. Is it safe to use the non-exported ncolors(::SparseJacobianPrep) and ncolors(::SparseHessianPrep) in getinfo ? If yes, why it's not in the documentation and there is no docstring ? If no, what is the safest way to extract the number of colors after preperation ?
edit: also a suggestion to simplify the user life: you could introduce a general fallback when the preperation backend is not sparse. It could return either 1 or nothing. Let me know what you think.
Thanks
Hello!
In MPC.jl, I have a
getinfomethods that return additional information about an optimum, to troubleshoot non-converging optimization or performance issues. It includes the Jacobians of the constraints and the Hessian of the Langrangian at the optimum.I understand that the evaluated number of colors at preparation can give some information on the performances of sparse differentiation. Hence, I would like to include the number of colors for all the sparse differentiation matrices in
getinfo. Is it safe to use the non-exportedncolors(::SparseJacobianPrep)andncolors(::SparseHessianPrep)ingetinfo? If yes, why it's not in the documentation and there is no docstring ? If no, what is the safest way to extract the number of colors after preperation ?edit: also a suggestion to simplify the user life: you could introduce a general fallback when the preperation backend is not sparse. It could return either
1ornothing. Let me know what you think.Thanks