forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolution_result.h
24 lines (21 loc) · 900 Bytes
/
solution_result.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <ostream>
#include <string>
namespace drake {
namespace solvers {
enum SolutionResult {
kSolutionFound = 0, ///< Found the optimal solution.
kInvalidInput = -1, ///< Invalid input.
kInfeasibleConstraints = -2, ///< The primal is infeasible.
kUnbounded = -3, ///< The primal is unbounded.
kUnknownError = -4, ///< Unknown error.
kInfeasibleOrUnbounded =
-5, ///< The primal is either infeasible or unbounded.
kIterationLimit = -6, ///< Reaches the iteration limits.
kDualInfeasible = -7, ///< Dual problem is infeasible. In this case we cannot
/// infer the status of the primal problem.
};
std::string to_string(SolutionResult solution_result);
std::ostream& operator<<(std::ostream& os, SolutionResult solution_result);
} // namespace solvers
} // namespace drake