Skip to content

Commit

Permalink
Apply 1 suggestion(s) to 1 file(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hojny authored and pfetsch committed Feb 11, 2024
1 parent 5aaa18b commit 3f986d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scip/sepa_lagromory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,14 +1353,14 @@ SCIP_RETCODE updateDualVector(
/* update Lagrangian multipliers */
for( int i = 0; i < ncuts; i++ )
{
assert( subgradient != NULL ); /* for lint */
assert(subgradient != NULL); /* for lint */
dualvector1[i] += steplength * subgradient[i];
}

/* projection onto non-negative orthant */
for( int i = 0; i < ncuts; i++ )
{
assert( dualvector1 != NULL ); /* for lint */
assert(dualvector1 != NULL); /* for lint */
dualvector1[i] = MAX(dualvector1[i], 0.0);
}

Expand Down

0 comments on commit 3f986d1

Please sign in to comment.