fixed bug on constraining for warmstart, needs more work however