Commit a9eb7435 authored by David Bommes's avatar David Bommes
Browse files

added function without constraints (for convenience)

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@141 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent e20f9db6
......@@ -98,6 +98,18 @@ solve(NProblemInterface* _problem, const std::vector<NConstraintInterface*>& _co
//-----------------------------------------------------------------------------
int
IPOPTSolver::
solve(NProblemInterface* _problem)
{
std::vector<NConstraintInterface*> constraints;
return this->solve(_problem, constraints);
}
//-----------------------------------------------------------------------------
int
IPOPTSolver::
solve(NProblemGmmInterface* _problem, std::vector<NConstraintInterface*>& _constraints)
......
......@@ -84,6 +84,9 @@ public:
int solve(NProblemInterface* _problem, const std::vector<NConstraintInterface*>& _constraints);
// for convenience, if no constraints are given
int solve(NProblemInterface* _problem);
// deprecated interface for backwards compatibility
int solve(NProblemGmmInterface* _problem, std::vector<NConstraintInterface*>& _constraints);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment