Skip to content

Commit

Permalink
turn off verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Jan 1, 2024
1 parent 41bf301 commit 085d8f8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/scs.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,13 @@ static ScsWork *init_work(const ScsData *d, const ScsCone *k,
}
if (w->stgs->acceleration_lookback) {
/* TODO(HACK!) negative acceleration_lookback interpreted as type-II */
if (!(w->accel = aa_init(
l, ABS(w->stgs->acceleration_lookback),
w->stgs->acceleration_lookback > 0,
w->stgs->acceleration_lookback > 0 ? AA_REGULARIZATION_TYPE_1
: AA_REGULARIZATION_TYPE_2,
AA_RELAXATION, AA_SAFEGUARD_FACTOR, AA_MAX_WEIGHT_NORM, 1))) {
if (!(w->accel = aa_init(l, ABS(w->stgs->acceleration_lookback),
w->stgs->acceleration_lookback > 0,
w->stgs->acceleration_lookback > 0
? AA_REGULARIZATION_TYPE_1
: AA_REGULARIZATION_TYPE_2,
AA_RELAXATION, AA_SAFEGUARD_FACTOR,
AA_MAX_WEIGHT_NORM, VERBOSITY))) {
if (w->stgs->verbose) {
scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n");
}
Expand Down

0 comments on commit 085d8f8

Please sign in to comment.