MlcpSolver.h
Go to the documentation of this file.
// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SURGSIM_MATH_MLCPSOLVER_H
#define SURGSIM_MATH_MLCPSOLVER_H
namespace SurgSim
{
namespace Math
{
struct MlcpProblem;
struct MlcpSolution;
class MlcpSolver
{
public:
MlcpSolver()
{
}
// Destructor.
virtual ~MlcpSolver()
{
}
virtual bool solve(const MlcpProblem& problem, MlcpSolution* solution) = 0;
private:
MlcpSolver(const MlcpSolver&);
MlcpSolver& operator==(const MlcpSolver&);
};
}; // namespace Math
}; // namespace SurgSim
#endif // SURGSIM_MATH_MLCPSOLVER_H
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::Math::MlcpSolver::solve
virtual bool solve(const MlcpProblem &problem, MlcpSolution *solution)=0
Attempts to solve the specified MLCP problem.
SurgSim::Math::MlcpSolver::~MlcpSolver
virtual ~MlcpSolver()
Definition: MlcpSolver.h:39
SurgSim::Math::MlcpSolver::MlcpSolver
MlcpSolver()
Constructor.
Definition: MlcpSolver.h:34
SurgSim::Math::MlcpSolution
The description of a solution to a mixed linear complementarity problem.
Definition: MlcpSolution.h:33
SurgSim::Math::MlcpSolver
This class provides a solver interface for mixed linear complementarity problems. ...
Definition: MlcpSolver.h:30
SurgSim::Math::MlcpSolver::operator==
MlcpSolver & operator==(const MlcpSolver &)
SurgSim::Math::MlcpProblem
A description of an MLCP (mixed linear complementarity problem, or mixed LCP) system to be solved...
Definition: MlcpProblem.h:57