Skip to content

Commit 37520b4

Browse files
committed
Report setting MIP start and initial primal/dual LP solutions to log
1 parent 453e4d3 commit 37520b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gmscuopt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ int main(int argc, char *argv[])
309309
#endif
310310
free(lvls);
311311
free(marginals);
312+
printOut(gev, "Initial primal and dual solutions have been set.\n");
312313
}
313314
}
314315

@@ -452,7 +453,7 @@ int main(int argc, char *argv[])
452453
{
453454
double *initial_levels = malloc(sizeof(double) * gmoN(gmo));
454455
gmoGetVarL(gmo, initial_levels);
455-
#ifdef CUOPT_INSTANTIATE_DOUBLE
456+
#ifdef CUOPT_INSTANTIATE_DOUBLE
456457
status = cuOptAddMIPStart(settings, initial_levels, gmoN(gmo));
457458
if (status != CUOPT_SUCCESS)
458459
{
@@ -472,6 +473,7 @@ int main(int argc, char *argv[])
472473
free(initial_levelsf);
473474
#endif
474475
free(initial_levels);
476+
printOut(gev, "MIP start has been set.\n");
475477
}
476478

477479
// Solve the problem

0 commit comments

Comments
 (0)