ConvexQP (functions)


siconos.numerics.convexQP_clear(ConvexQP *cqp) → None[source]

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

Parameters:cqp – the problem to clear

siconos.numerics.convexQP_display(ConvexQP *cqp) → None[source]

display a ConvexQPProblem

Parameters:cqp – the problem to display

siconos.numerics.convexQP_free(ConvexQP *cqp) → None[source]

free a ConvexQPProblem

Parameters:cqp – the problem to free

siconos.numerics.convexQP_get_env(None *cqp) → None *[source]

get the environment from the struct

Parameters:cqp – a ConvexQP problem
Returns:the environment from the struct

siconos.numerics.convexQP_new(int size) → ConvexQP *[source]

new ConvexQP problem

Parameters:size – size of the ambient space for the CQP
Returns:a initialized ConvexQP struct

siconos.numerics.convexQP_newFromFile(ConvexQP *cqp, FILE *file) → int[source]

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

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

ok if successfull


siconos.numerics.convexQP_printInFile(ConvexQP *cqp, FILE *file) → int[source]

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

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

ok if successfull