VariationalInequality (functions)


siconos.numerics.VI_get_env(None *vi) → None *[source]

get the environment from the struct

Parameters:vi – a VariationalInequality problem
Returns:the environment from the struct

siconos.numerics.freeVariationalInequalityProblem(VariationalInequality *vi) → None[source]

free a VariationalInequalityProblem

Parameters:vi – the problem to free

siconos.numerics.newVI(None) → VariationalInequality *[source]

new VariationalInequality problem

Returns:an empty VI

siconos.numerics.variationalInequality_clear(VariationalInequality *vi) → None[source]

Clear VariationalInequality structure: set all pointeurs to NULL, double and int to 0.

Parameters:vi – the problem to clear

siconos.numerics.variationalInequality_display(VariationalInequality *vi) → None[source]

display a VariationalInequalityProblem

Parameters:vi – the problem to display

siconos.numerics.variationalInequality_new(int size) → VariationalInequality *[source]

new VariationalInequality problem

Parameters:size – size of the ambient space for the VI
Returns:a initialized VariationalInequality struct

siconos.numerics.variationalInequality_newFromFile(VariationalInequality *vi, FILE *file) → int[source]

read a VariationalInequalityProblem in a file (numerics .dat format)

Parameters:
  • vi – the problem to read
  • file – the target file
Returns:

ok if successfull


siconos.numerics.variationalInequality_printInFile(VariationalInequality *vi, FILE *file) → int[source]

print a VariationalInequalityProblem in a file (numerics .dat format)

Parameters:
  • vi – the problem to print out
  • file – the dest file
Returns:

ok if successfull