File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ def read_scip_log(filename: str):
455455 solver_status = scip_lines [0 ][colon_position + 2 : scip_lines [0 ].index ('\n ' )]
456456
457457 solving_time = float (
458- scip_lines [1 ][colon_position + 2 : scip_lines [1 ].index ('\n ' )]
458+ scip_lines [1 ][colon_position + 2 : scip_lines [1 ].index ('\n ' )]. split ( ' ' )[ 0 ]
459459 )
460460
461461 try :
Original file line number Diff line number Diff line change @@ -106,6 +106,12 @@ def test_scip_solve_from_instance_options(self):
106106 results .write (filename = _out , times = False , format = 'json' )
107107 self .compare_json (_out , join (currdir , "test_scip_solve_from_instance.baseline" ))
108108
109+ def test_scip_solve_from_instance_with_reoptimization (self ):
110+ # Test scip with re-optimization option enabled
111+ # This case changes the Scip output results which may break the results parser
112+ self .scip .options ['reoptimization/enable' ] = True
113+ self .test_scip_solve_from_instance ()
114+
109115
110116if __name__ == "__main__" :
111117 deleteFiles = False
You can’t perform that action at this time.
0 commit comments