solve_piecewisec function

Solve as piecewise logit problem, categorical target.