File kernel/src/simulationTools/QP.hpp#
Go to the source code of this file
-
class QP : public OneStepNSProblem
- #include <QP.hpp>
Quadratic Problem.
Public Functions
-
QP() = default#
-
inline ~QP()
Destructor.
-
inline const SimpleMatrix getQ() const
get the value of Q
- Returns:
-
inline SP::SiconosMatrix q() const
get Q
- Returns:
pointer on a SiconosMatrix
-
inline void setQ(const SiconosMatrix &newValue)
set the value of Q to newValue
- Parameters:
newValue – SiconosMatrix
-
inline void setQPtr(SP::SiconosMatrix newPtr)
set Q to pointer newPtr
- Parameters:
newPtr – the new matrix
-
inline const SiconosVector getP() const
get the value of p, the initial state of the DynamicalSystem
Warning
: SiconosVector is an abstract class => can not be an lvalue => return SiconosVector
- Returns:
-
inline SP::SiconosVector p() const
get p, the initial state of the DynamicalSystem
- Returns:
pointer on a SiconosVector
-
inline void setP(const SiconosVector &newValue)
set the value of p to newValue
- Parameters:
newValue – SiconosVector
-
inline void setPPtr(SP::SiconosVector newPtr)
set p to pointer newPtr
- Parameters:
newPtr – SiconosVector *
-
virtual int compute(double time)
To run the solver for ns problem.
- Parameters:
time – current time
- Returns:
int, information about the solver convergence.
-
virtual void display() const
print the data to the screen
-
inline virtual void computeInteractionBlock(const InteractionsGraph::EDescriptor&)
compute extra-diagonal interactionBlock-matrix
- Parameters:
ed – an edge descriptor
-
inline virtual void computeDiagonalInteractionBlock(const InteractionsGraph::VDescriptor&)
compute diagonal Interaction block
- Parameters:
vd – a vertex descriptor
-
inline virtual bool preCompute(double time)
prepare data of the osns for solving
- Parameters:
time – the current time
- Returns:
true if the computation of the OSNS has to be carry on, false otherwise
-
inline virtual void postCompute()
post treatment for output of the solver
-
QP() = default#