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()

contains the data of the QP, according to siconos/numerics

~QP()

Destructor.

int compute(double time)

To run the solver for ns problem.

Return
int, information about the solver convergence.
Parameters
  • time: current time

void computeDiagonalInteractionBlock(const InteractionsGraph::VDescriptor &vd)

compute diagonal Interaction block

Parameters
  • vd: a vertex descriptor

void computeInteractionBlock(const InteractionsGraph::EDescriptor &ed)

compute extra-diagonal interactionBlock-matrix

Parameters
  • ed: an edge descriptor

void display() const

print the data to the screen

const SiconosVector getP() const

get the value of p, the initial state of the DynamicalSystem

Return
SiconosVector
Warning
: SiconosVector is an abstract class => can not be an lvalue => return SiconosVector

const SimpleMatrix getQ() const

get the value of Q

Return
SimpleMatrix

SP::SiconosVector p() const

get p, the initial state of the DynamicalSystem

Return
pointer on a SiconosVector

void postCompute()

post treatment for output of the solver

virtual bool preCompute(double time)

prepare data of the osns for solving

Return
true if the computation of the OSNS has to be carry on, false otherwise
Parameters
  • time: the current time

SP::SiconosMatrix q() const

get Q

Return
pointer on a SiconosMatrix

void setP(const SiconosVector &newValue)

set the value of p to newValue

Parameters

void setPPtr(SP::SiconosVector newPtr)

set p to pointer newPtr

Parameters

void setQ(const SiconosMatrix &newValue)

set the value of Q to newValue

Parameters
  • newValue: SiconosMatrix

void setQPtr(SP::SiconosMatrix newPtr)

set Q to pointer newPtr

Parameters
  • newPtr: the new matrix

Private Functions

ACCEPT_SERIALIZATION(QP)

serialization hooks

Private Members

SP::SiconosVector _p

contains the p vector of a QP problem

SP::SiconosMatrix _Q

contains the Q matrix of a QP problem