siconos.kernel.MLCPProjectOnConstraints (Python class)

class siconos.kernel.MLCPProjectOnConstraints(*args)[source]

Bases: siconos.kernel.MLCP

Formalization and Resolution of a Mixed Linear Complementarity Problem (MLCP)

This class is devoted to the formalization and the resolution of the Mixed Linear Complementarity Problem (MLCP) for the specific problem of the projection onto the constraints in Mechanics

Generated class (swig), based on C++ header Program listing for file kernel/src/simulationTools/MLCPProjectOnConstraints.hpp.

Constructors

MLCPProjectOnConstraints(int numericsSolverId=SICONOS_MLCP_ENUM, double alpha=1.0)

constructor from data

Parameters:
  • numericsSolverId – solver id
  • alpha – alpha parameter value
alpha() → double[source]
Returns:alpha value
computeDiagonalInteractionBlock(InteractionsGraph::VDescriptor vd) → None[source]

compute diagonal Interaction block

Parameters:vd – a vertex (interaction) descriptor
computeInteractionBlock(InteractionsGraph::EDescriptor vd) → None[source]

compute diagonal Interaction block

Parameters:vd – a vertex (interaction) descriptor
computeOptions(Interaction inter1, Interaction inter2) → None[source]

compute the number of inequality and equality for a given tuple of Interactions update the global number of equality(_n) and inequality (_m) set up _numerics_problem parameters (blocksRows and blocksIsComp )

Parameters:
  • inter1 – first interaction considered
  • inter2 – second interaction
computeq(double time) → None[source]

compute vector q

Parameters:time – the current time
computeqBlock(InteractionsGraph::VDescriptor vd, int pos) → None[source]

To compute a part of the “q” vector of the OSNS.

Parameters:
  • vd – vertex (interaction) which corresponds to the considered block
  • pos – the position of the first element of yOut to be set
display() → None[source]

print the data to the screen

displayBlocks(InteractionsGraph indexSet) → None[source]

Display the set of blocks for a given indexSet.

Parameters:indexSet – the graph of interactions
initOSNSMatrix() → None[source]
postCompute() → None[source]

post-treatment for MLCPProjectOnConstraints

postComputeLagrangianR(Interaction inter, int pos) → None[source]

post-treatment for MLCPProjectOnConstraints for LagrangianR

Parameters:
  • inter – the considered interaction
  • pos – interaction position in the global vector
postComputeNewtonEulerR(Interaction inter, int pos) → None[source]

post-treatment for MLCPProjectOnConstraints for NewtonEulerR

Parameters:
  • inter – the considered interaction
  • pos – interaction position in the global vector
setAlpha(double newval) → None[source]

setter for alpha

Parameters:newval – new value for alpha parameter
setDoProjOnEquality(bool v) → None[source]
updateInteractionBlocks() → None[source]

compute interactionBlocks if necessary (this depends on the type of OSNS, on the indexSets …)

updateInteractionBlocksOLD() → None[source]

compute interactionBlocks if necessary (this depends on the type of OSNS, on the indexSets …)