|
AGXDynamics
2.31.1.0
|
Class that implements a method to solve linear- or nonlinear complementary problems. More...
#include <MixedLCP.h>
Inheritance diagram for agx::NlMixedCp:Classes | |
| class | McpAlgorithm |
| Interface class for algorithm to solve general mixed complementarity problem. More... | |
Public Types | |
| typedef agx::ref_ptr < McpAlgorithm > | McpAlgorithmRef |
Public Member Functions | |
| NlMixedCp (agx::NlMixedCp::McpAlgorithm *mcpAlgorithm) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| const agx::NlMixedCp::McpAlgorithm * | getAlgorithm () const |
| agx::SparseMatrix & | getMatrix () |
| const agx::SparseMatrix & | getMatrix () const |
| agx::RealValarray & | getQ () |
| const agx::RealValarray & | getQ () const |
| int | getReferenceCount () const |
| agx::RealValarray & | getSigns () |
| const agx::RealValarray & | getSigns () const |
| agx::RealValarray & | getSolution () |
| const agx::RealValarray & | getSolution () const |
| agx::SparseRangeReal & | getSparseBounds () |
| const agx::SparseRangeReal & | getSparseBounds () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| virtual void | setSize (agx::UInt numEquations) |
| Set the size of the system. More... | |
| virtual agx::UInt | solve (agx::Bool warm=false, agx::StabilityReport *stabilityReport=nullptr, agx::INlSolveDataH5 *nlSolveDataH5=nullptr) |
| Solves the system, returns the total number of iterations made in the inner (mcp) loop. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| static NlMixedCpRef | create (agx::Solver::NlMcpConfig config, bool gatherStatistics) |
| Creates default solver assuming symmetric-, sparse- and lower triangle matrix. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~NlMixedCp () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Class that implements a method to solve linear- or nonlinear complementary problems.
Definition at line 107 of file MixedLCP.h.
Definition at line 360 of file MixedLCP.h.
| agx::NlMixedCp::NlMixedCp | ( | agx::NlMixedCp::McpAlgorithm * | mcpAlgorithm | ) |
|
protectedvirtual |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
static |
Creates default solver assuming symmetric-, sparse- and lower triangle matrix.
|
protectedinherited |
| const agx::NlMixedCp::McpAlgorithm* agx::NlMixedCp::getAlgorithm | ( | ) | const |
|
staticprotectedinherited |
| agx::SparseMatrix& agx::NlMixedCp::getMatrix | ( | ) |
| const agx::SparseMatrix& agx::NlMixedCp::getMatrix | ( | ) | const |
| agx::RealValarray& agx::NlMixedCp::getQ | ( | ) |
| const agx::RealValarray& agx::NlMixedCp::getQ | ( | ) | const |
|
inherited |
| agx::RealValarray& agx::NlMixedCp::getSigns | ( | ) |
| const agx::RealValarray& agx::NlMixedCp::getSigns | ( | ) | const |
| agx::RealValarray& agx::NlMixedCp::getSolution | ( | ) |
| const agx::RealValarray& agx::NlMixedCp::getSolution | ( | ) | const |
| agx::SparseRangeReal& agx::NlMixedCp::getSparseBounds | ( | ) |
| const agx::SparseRangeReal& agx::NlMixedCp::getSparseBounds | ( | ) | const |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
Set the size of the system.
Calling this method will clear all data.
|
virtual |
Solves the system, returns the total number of iterations made in the inner (mcp) loop.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
protected |
Definition at line 443 of file MixedLCP.h.
|
protected |
Definition at line 451 of file MixedLCP.h.
|
protected |
Definition at line 452 of file MixedLCP.h.
|
protected |
Definition at line 445 of file MixedLCP.h.
|
protected |
Definition at line 453 of file MixedLCP.h.
|
protected |
Definition at line 444 of file MixedLCP.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 454 of file MixedLCP.h.
|
protected |
Definition at line 446 of file MixedLCP.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 450 of file MixedLCP.h.
|
protected |
Definition at line 449 of file MixedLCP.h.
|
protected |
Definition at line 447 of file MixedLCP.h.
|
protected |
Definition at line 448 of file MixedLCP.h.