gtsam/gtsam_unstable/linear/InfeasibleOrUnboundedProblem.h

38 lines
1004 B
C
Raw Permalink Normal View History

2016-06-17 11:49:14 +08:00
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------------------------------------------------------------- */
/**
* @file InfeasibleOrUnboundedProblem.h
* @brief Throw when the problem is either infeasible or unbounded
* @author Ivan Dario Jimenez
* @date 1/24/16
*/
2019-02-11 22:39:48 +08:00
#pragma once
2016-06-17 11:49:14 +08:00
namespace gtsam {
class InfeasibleOrUnboundedProblem: public ThreadsafeException<
InfeasibleOrUnboundedProblem> {
public:
InfeasibleOrUnboundedProblem() {
}
~InfeasibleOrUnboundedProblem() noexcept override {
}
const char* what() const noexcept override {
if (description_->empty())
description_ = "The problem is either infeasible or unbounded.\n";
return description_->c_str();
}
};
}