Structure detection in mixed integer programs