sparse calculation in objective