support linear objectives
support quadratic objectives