Skip to content

Commit

Permalink
Merge pull request #174 from Isitar/bugfix/stop-branching-on-infeasib…
Browse files Browse the repository at this point in the history
…le-node

fixed condition to branch on infeasible node
  • Loading branch information
adomahidi authored Apr 15, 2019
2 parents fc6afa2 + 6f32caa commit 53db687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecos_bb/ecos_bb.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ static void get_bounds(idxint node_idx, ecos_bb_pwork* prob){
}
#endif

if (ret_code >= 0 ||
if (ret_code == ECOS_OPTIMAL ||
ret_code == ECOS_OPTIMAL + ECOS_INACC_OFFSET ||
ret_code == ECOS_MAXIT ||
ret_code == ECOS_NUMERICS )
{
Expand Down

0 comments on commit 53db687

Please sign in to comment.