Skip to content

Commit

Permalink
Fix missing option in OptStatus to string
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts committed Nov 29, 2023
1 parent 4e72539 commit 9329d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trajopt_sco/include/trajopt_sco/optimizers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ enum OptStatus
OPT_FAILED,
INVALID
};
static const std::array<std::string, 5> OptStatus_strings = { "CONVERGED",
static const std::array<std::string, 6> OptStatus_strings = { "CONVERGED",
"SCO_ITERATION_LIMIT",
"PENALTY_ITERATION_LIMIT",
"TIME_LIMI",
"FAILED",
"INVALID" };
inline std::string statusToString(OptStatus status) { return OptStatus_strings[status]; }
Expand Down

0 comments on commit 9329d8f

Please sign in to comment.