Skip to content

Commit 750f665

Browse files
committed
add getDualSolution() implementation
1 parent 72c0be8 commit 750f665

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocs2_ipm/include/ocs2_ipm/IpmSolver.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class IpmSolver : public SolverBase {
6767

6868
void getPrimalSolution(scalar_t finalTime, PrimalSolution* primalSolutionPtr) const override { *primalSolutionPtr = primalSolution_; }
6969

70+
const DualSolution* getDualSolution() const override { return &dualIneqTrajectory_; }
71+
7072
const ProblemMetrics& getSolutionMetrics() const override { return problemMetrics_; }
7173

7274
size_t getNumIterations() const override { return totalNumIterations_; }

0 commit comments

Comments
 (0)