Skip to content

Commit 71a5648

Browse files
committed
Also write end row 'E' in mip trace in case even the solution bound cannot be obtained
1 parent 8df1a5c commit 71a5648

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

gmscuopt.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,15 +620,12 @@ int main(int argc, char *argv[])
620620
else if (fp_mip_trace) // gmoModelStat(gmo) == gmoModelStat_NoSolutionReturned
621621
{
622622
double total_elapsed = (gevTimeJNow(gev) - context.tstart) * 3600.0 * 24.0;
623+
solution_bound = GMS_SV_NA;
623624
if (gmoModelType(gmo) == gmoProc_mip && has_integer_vars)
624625
{
625626
status = cuOptGetSolutionBound(solution, &solution_bound);
626627
if (status != CUOPT_SUCCESS)
627-
{
628-
printOut(gev, "Error getting solution bound: %d\n", status);
629-
goto DONE;
630-
}
631-
gmoSetHeadnTail(gmo, gmoTmipbest, solution_bound);
628+
solution_bound = GMS_SV_NA;
632629
}
633630
mip_trace_line('E', 0, 0, total_elapsed, GMS_SV_NA, solution_bound);
634631
}

0 commit comments

Comments
 (0)