Skip to content
Snippets Groups Projects
Commit a70cbad8 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Reimplement Problem::checkProblem

parent d943c81e
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,14 @@ namespace hpp {
return graph_;
}
/// Check whether the problem is well formulated.
virtual void checkProblem () const
{
core::Problem::checkProblem ();
if (!graph_)
throw std::runtime_error ("No graph in the problem.");
}
private:
/// The graph of constraints
graph::GraphPtr_t graph_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment