Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/scip/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3681,10 +3681,10 @@ SCIP_RETCODE SCIPexprComputeQuadraticCurvature(
n = quaddata->nquadexprs;

/* do not check curvature if nn will be too large
* we want nn * sizeof(real) to fit into an unsigned int, so n must be <= sqrt(unit_max/sizeof(real))
* sqrt(2*214748364/8) = 7327.1475350234
* we want nn * sizeof(real) to fit into an unsigned int, so n must be <= sqrt(uint_max/sizeof(real))
* sqrt(4294967295/8) = 23170.47500322339
*/
if( n > 7000 )
if( n > 23000 )
{
SCIPmessageFPrintVerbInfo(messagehdlr, set->disp_verblevel, SCIP_VERBLEVEL_FULL, NULL,
"number of quadratic variables is too large (%d) to check the curvature\n", n);
Expand Down
2 changes: 1 addition & 1 deletion src/scip/nlhdlr_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ SCIP_RETCODE detectSocQuadraticComplex(
}

/* check that nvars*nvars doesn't get too large, see also SCIPcomputeExprQuadraticCurvature() */
if( nvars > 7000 )
if( nvars > 23000 )
{
SCIPverbMessage(scip, SCIP_VERBLEVEL_FULL, NULL, "nlhdlr_soc - number of quadratic variables is too large (%d) to check the curvature\n", nvars);
SCIPfreeBufferArray(scip, &occurringexprs);
Expand Down