Skip to content

Commit

Permalink
throw exception when it is asked to separate an equality constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Oct 11, 2023
1 parent 1349087 commit 5338772
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/optimizers/callbacks/CutSeparation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ idol::impl::CutSeparation::CutSeparation(CallbackEvent t_triggering_event,
throw Exception("Adding non-linear cut is not available.");
}

if (m_cut.type() == Equal) {
throw Exception("Separating equality constraints is not available.");
}

}

void idol::impl::CutSeparation::operator()(CallbackEvent t_event) {
Expand Down

0 comments on commit 5338772

Please sign in to comment.