File numerics/src/Relay/RelayProblem.h

Go to the source code of this file

Structure used to define a Relay (dual or primal) Problem.

Functions

void Relay_display(RelayProblem *p)

displays the problem onto the screen

Parameters

p[in] Relay problem to be displayed

int relay_printInFile(RelayProblem *problem, FILE *file)

Saves relay struct into a file.

Parameters
  • problem[in] structure

  • file, file[in] descriptor

Returns

file status (1 if everything has worked properly)

RelayProblem *relayProblem_new(void)
RelayProblem *relay_newFromFile(FILE *file)

read a RelayProblem from a file descriptor

Parameters

file – descriptor

Returns

problem the problem to read

RelayProblem *relay_new_from_filename(const char *filename)

read a RelayProblem from a file (.dat or hdf5 if fclib is on) from its filename

Parameters

filename – the name of the input file

Returns

problem the problem to read

void freeRelay_problem(RelayProblem *problem)

Release memory for the problem structure.

Parameters

problem, Relay[inout] problem structure to be freed.

struct RelayProblem
#include <>

Struct defining a Relay problem.

Public Members

int size

size dim of the problem

NumericsMatrix *M

M matrix of the Relay.

double *q

q vector

double *lb

lb upper bound

double *ub

ub lower bound