26 #include <agxSabre/agxSabre.h> 29 #pragma warning( push ) 30 #pragma warning( disable : 4275 ) // C4275: non dll-interface class 'x' used as base for dll-interface class 'y' 36 class StabilityReport;
63 void clear(
size_t numEquations);
84 std::vector<int> m_timesAdded;
90 std::vector<int> m_timesRemoved;
92 UInt m_numNlMixedCpIterations = 0;
94 std::vector<UInt> m_numMurtyIterations;
95 std::vector<UInt> m_numKellerMakeFeasibleIterations;
96 std::vector<UInt> m_numKellerSearchIterations;
98 std::vector<UInt> m_numFreeEquationsAtEnd;
100 bool m_gatherStatistics =
false;
188 Args& operator = (
const Args& ) =
delete;
237 void setGlobalTolerance(
agx::Real globalTolerance );
248 void setMaxNumIterations(
agx::UInt maxNumIterations );
255 void resizeStats(
size_t numEquations);
262 void clearStats(
size_t numEquations);
366 static NlMixedCpRef create( agx::Solver::NlMcpConfig config,
bool gatherStatistics );
428 virtual void setSize(
agx::UInt numEquations );
474 void solve(
bool warm =
false);
477 int getIterations()
const;
479 Real getLastResidual()
const;
482 bool isSuccess()
const;
491 std::ostream & diag(std::ostream &os,
const agx::String & msg =
"" )
const ;
494 class MixedLCPRep * m_rep;
498 #if defined(_MSC_VER) 499 #pragma warning( pop ) // restoring: warning( disable : 4127 )
Class that stores rows and columns of the matrix.
void reportKellerSearchIterations(UInt numIterations)
agx::RealValarray m_signs
Storage location for solver statistics.
agx::ref_ptr< McpAlgorithm > McpAlgorithmRef
const std::vector< UInt > & numFreeEquationsAtEnd() const
const agx::SparseRangeReal & bounds
void addStats(const McpAlgorithmStats &other)
agx::SparseMatrix m_matrix
McpAlgorithmStats m_stats
Class that implements a method to solve linear- or nonlinear complementary problems.
const std::vector< UInt > & numKellerSearchIterations() const
const std::vector< UInt > & numMurtyIterations() const
#define AGXPHYSICS_EXPORT
const std::vector< int > & timesAdded() const
agx::ColumnStorage * columnStorage
agx::UInt m_maxNumOuterIterations
void reportAddedAndRemovedEquations(const agxSabre::UInt32Vector &add, const agxSabre::UInt32Vector &del)
void reportNumNlMixedCpIterations(UInt numIterations)
Base class providing referencing counted objects.
Essentially a sparse array of bounds.
agx::UInt m_maxNumIterations
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void reportNumFreeEquationsAtEnd(const agx::IndexSet &indexSet)
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
VectorPOD< UInt32 > UInt32Vector
agx::Real m_globalTolerance
Definition of a mixed LCP problem.
bool getEnableGatherStatistics() const
void clear(size_t numEquations)
const agx::RealValarray & signs
void setEnableGatherStatistics(bool enable)
void reportKellerMakeFeasibleIterations(UInt numIterations)
Structure for all the arguments passed around.
agx::SparseRangeReal m_sparseBounds
void reportMurtyIterations(UInt numIterations)
Solver::NlMcpConfig m_config
const std::vector< UInt > & numKellerMakeFeasibleIterations() const
UInt numNlMixedCpIterations() const
agx::NlMixedCp::McpAlgorithmRef m_mcp
void setNumEquations(size_t numEquations)
Interface class for algorithm to solve general mixed complementarity problem.
agx::SparseMatrix holds a matrix representation which contains the data.
agx::StabilityReport * stabilityReport
const std::vector< int > & timesRemoved() const
agx::ref_ptr< class NlMixedCp > NlMixedCpRef
agx::Real m_outerGlobalTolerance