Multiattribute decision making via identification of nondiagonal quadratic cost functions