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 freeRelay_problem(RelayProblem *problem)

Release memory for the problem structure.

Parameters
  • [inout] problem[inout] Relay: problem structure to be freed.

void Relay_display(RelayProblem *p)

displays the problem onto the screen

Parameters
  • [in] p: Relay problem to be displayed

RelayProblem *relay_new_from_filename(const char *filename)

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

Return

problem the problem to read

Parameters
  • filename: the name of the input file

RelayProblem *relay_newFromFile(FILE *file)

read a RelayProblem from a file descriptor

Return

problem the problem to read

Parameters
  • file: descriptor

int relay_printInFile(RelayProblem *problem, FILE *file)

Saves relay struct into a file.

Return

file status (1 if everything has worked properly)

Parameters
  • [in] problem: structure

  • [in] file[in] file: descriptor

RelayProblem *relayProblem_new(void)
struct RelayProblem
#include <RelayProblem.h>

Struct defining a Relay problem.

Public Members

double *lb

lb upper bound

NumericsMatrix *M

M matrix of the Relay.

double *q

q vector

int size

size dim of the problem

double *ub

ub lower bound