J hooks for lbfgsb, constrained optimization