gtsam
Loading...
Searching...
No Matches
InfeasibleOrUnboundedProblem.h
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2
3 * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4 * Atlanta, Georgia 30332-0415
5 * All Rights Reserved
6 * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8 * See LICENSE for the license information
9
10 * -------------------------------------------------------------------------- */
11
18
19#pragma once
20
21#include <gtsam/config.h>
22
23#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V43
24
26
27namespace gtsam {
28
29class InfeasibleOrUnboundedProblem
30 : public ThreadsafeException<InfeasibleOrUnboundedProblem> {
31 public:
32 InfeasibleOrUnboundedProblem() {}
33 ~InfeasibleOrUnboundedProblem() noexcept override {}
34
35 const char* what() const noexcept override {
36 if (description_->empty())
37 description_ = "The problem is either infeasible or unbounded.\n";
38 return description_->c_str();
39 }
40};
41} // namespace gtsam
42
43#endif // GTSAM_ALLOW_DEPRECATED_SINCE_V43
Base exception type that uses tbb_allocator if GTSAM is compiled with TBB.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
Base exception type that uses tbb_allocator if GTSAM is compiled with TBB.
Definition ThreadsafeException.h:42