first subproblem to lp for rerouting working