Skip to content

Commit cb3764b

Browse files
committed
LinesearchVariant::init() should not be called unless the step accpetance strategy is a linesearch
1 parent 3885add commit cb3764b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- `LinesearchVariant::init()` should not be called unless the step accpetance strategy is a linesearch
13+
1014
## [0.10.0] - 2024-12-09
1115

1216
### Added

include/aligator/solvers/proxddp/solver-proxddp.hxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ void SolverProxDDPTpl<Scalar>::setup(const Problem &problem) {
147147
if (!problem.checkIntegrity())
148148
ALIGATOR_RUNTIME_ERROR("Problem failed integrity check.");
149149

150-
linesearch_.init(sa_strategy_, ls_params);
150+
if (int(sa_strategy_) <= 1) {
151+
linesearch_.init(sa_strategy_, ls_params);
152+
}
151153

152154
results_.~Results();
153155
workspace_.~Workspace();

0 commit comments

Comments
 (0)