http://student.agh.edu.pl/~kawulak/constrained_value/reference/classboost_1_1constrained__value_1_1constrained.html#_details