File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -458,12 +458,20 @@ SCIP_RETCODE setupPresolve(
458
458
if ( data->enablesparsify )
459
459
presolve.addPresolveMethod ( uptr ( new Sparsify<T>() ) );
460
460
461
- /* set tolerances */
462
- presolve.getPresolveOptions ().feastol = SCIPfeastol (scip);
463
- presolve.getPresolveOptions ().epsilon = SCIPepsilon (scip);
461
+ /* set numerical tolerances */
464
462
#if PAPILO_APIVERSION >= 3
465
463
presolve.getPresolveOptions ().useabsfeas = false ;
466
464
#endif
465
+ if ( SCIPisExact (scip) )
466
+ {
467
+ presolve.getPresolveOptions ().epsilon = 0.0 ;
468
+ presolve.getPresolveOptions ().feastol = 0.0 ;
469
+ }
470
+ else
471
+ {
472
+ presolve.getPresolveOptions ().epsilon = SCIPepsilon (scip);
473
+ presolve.getPresolveOptions ().feastol = SCIPfeastol (scip);
474
+ }
467
475
468
476
#ifndef SCIP_PRESOLLIB_ENABLE_OUTPUT
469
477
/* adjust output settings of presolve library */
You can’t perform that action at this time.
0 commit comments