Class QP#

Defined in Program listing for file kernel/src/simulationTools/QP.hpp

class QP : public OneStepNSProblem#

Quadratic Problem.

Public Functions

inline ~QP()#

Destructor.

inline const SimpleMatrix getQ() const#

get the value of Q

Returns:

SimpleMatrix

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:

newValueSiconosMatrix

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:

SiconosVector

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:

newValueSiconosVector

inline void setPPtr(SP::SiconosVector newPtr)#

set p to pointer newPtr

Parameters:

newPtrSiconosVector *

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