Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v90-bugfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
scip-ci committed Jan 2, 2024
2 parents 89fd609 + e3f5509 commit 9a5b83e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/src/cons/nonlinear/nlhdlr_quadratic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,13 @@ Test(interCuts, minrepresentation, .description = "test negative coef for minima

simplifyAndDetect(&cons, &nlhdlrexprdata, "[nonlinear] <test>: <x>^2 - <y>^2 <= -1.0");

/* skip if detection wasn't successful (happens if IPOPT isn't used) */
if( nlhdlrexprdata == NULL )
{
registerAndFree(cons, nlhdlrexprdata);
return;
}

/* skip if eigenvalue decomposition does not exist */
SCIPexprGetQuadraticData(nlhdlrexprdata->qexpr, NULL, NULL, NULL, NULL, NULL, NULL, &eigenvalues, NULL);
if( eigenvalues == NULL )
Expand Down Expand Up @@ -2917,6 +2924,13 @@ Test(interCuts, monoidal, .description = "test cut for monoidal strengthening")

simplifyAndDetect(&cons, &nlhdlrexprdata, "[nonlinear] <test>: <x>^2 - <y>^2 <= -1.0");

/* skip if detection wasn't successful (happens if IPOPT isn't used) */
if( nlhdlrexprdata == NULL )
{
registerAndFree(cons, nlhdlrexprdata);
return;
}

/* skip if eigenvalue decomposition does not exist */
SCIPexprGetQuadraticData(nlhdlrexprdata->qexpr, NULL, NULL, NULL, NULL, NULL, NULL, &eigenvalues, NULL);
if( eigenvalues == NULL )
Expand Down

0 comments on commit 9a5b83e

Please sign in to comment.