#include <lurupa/globals.h>
#include <stdio.h>
Go to the source code of this file.
Typedefs | |
C version of variable types | |
typedef char | BOOL |
typedef enum Bound_status | BOUND_STATUS |
typedef void * | PLP |
typedef enum Solver_status | SOLVER_STATUS |
Functions | |
void | clu_cleanup () |
Cleanup library wrapper. | |
double | clu_get_alpha () |
Get algorithm parameter alpha. | |
const char * | clu_get_core_version () |
Get core version string. | |
double | clu_get_eta () |
Get algorithm parameter eta. | |
char * | clu_get_lp_name (PLP Lp) |
Get linear program's name. | |
const char * | clu_get_module_version () |
Get solver module version. | |
double | clu_get_solver_eps () |
Get solver's accuracy. | |
void | clu_init () |
Initialize library wrapper. | |
BOOL | clu_is_inflate () |
Is inflation set. | |
BOOL | clu_is_lp_maximize (PLP Lp) |
Return whether linear program is maximized. | |
BOUND_STATUS | clu_lower_bound (PLP Lp, double *bound, int *iterations) |
Compute lower bound. | |
void | clu_print_module_options () |
Print options supported by module. | |
PLP | clu_read_lp (FILE *in, const double relative_interval_radius) |
Read linear program. | |
void | clu_set_alpha (double alpha) |
Set algorithm parameter alpha. | |
void | clu_set_eta (double eta) |
Set algorithm parameter eta. | |
void | clu_set_inflate (BOOL inflate) |
Set inflation. | |
BOOL | clu_set_lp (PLP *lp, const double relative_interval_radius) |
Set linear program. | |
BOOL | clu_set_module (char *module_path) |
Set solver module. | |
BOOL | clu_set_module_options (PLP Lp, int argc, char *argv[]) |
Set solver options. | |
BOOL | clu_set_solution (PLP Lp, void *p) |
Set a linear program's feasibility. | |
BOOL | clu_solve_lp (double *optimal_value, SOLVER_STATUS *status) |
Solve linear program. | |
BOUND_STATUS | clu_upper_bound (PLP Lp, double *bound, int *iterations) |
Compute upper bound. |
This is work in progess.
void clu_cleanup | ( | ) |
Cleanup library wrapper.
Cleanup the library wrapper.
double clu_get_alpha | ( | ) |
Get algorithm parameter alpha.
Get the algorithm parameter alpha.
References clu_init(), and Lurupa::get_alpha().
const char* clu_get_core_version | ( | ) |
Get core version string.
Get the core version string.
References clu_init(), and Lurupa::get_core_version().
double clu_get_eta | ( | ) |
Get algorithm parameter eta.
Get the algorithm parameter eta.
References clu_init(), and Lurupa::get_eta().
char* clu_get_lp_name | ( | PLP | lp | ) |
Get linear program's name.
Get the linear program's name.
References clu_init().
const char* clu_get_module_version | ( | ) |
Get solver module version.
Get the solver module version.
References clu_init(), and Lurupa::get_module_version().
double clu_get_solver_eps | ( | ) |
Get solver's accuracy.
Get solver accuracy.
References clu_init(), and Lurupa::get_solver_eps().
void clu_init | ( | ) |
Initialize library wrapper.
Initialize the library wrapper.
Referenced by clu_get_alpha(), clu_get_core_version(), clu_get_eta(), clu_get_lp_name(), clu_get_module_version(), clu_get_solver_eps(), clu_is_inflate(), clu_is_lp_maximize(), clu_lower_bound(), clu_print_module_options(), clu_read_lp(), clu_set_alpha(), clu_set_eta(), clu_set_inflate(), clu_set_interface(), clu_set_lp(), clu_set_module(), clu_set_module_options(), clu_set_solution(), clu_solve_lp(), and clu_upper_bound().
BOOL clu_is_inflate | ( | ) |
Is inflation set.
Get the algorithm flag inflate.
References clu_init(), and Lurupa::is_inflate().
BOOL clu_is_lp_maximize | ( | PLP | lp | ) |
Return whether linear program is maximized.
Return whether the linear program is maximized.
References clu_init().
BOUND_STATUS clu_lower_bound | ( | PLP | lp, | |
double * | bound, | |||
int * | iterations | |||
) |
Compute lower bound.
Compute the lower bound.
References clu_init(), and Lurupa::lower_bound().
void clu_print_module_options | ( | ) |
Print options supported by module.
Print the options supported by the module.
References clu_init(), and Lurupa::print_module_options().
PLP clu_read_lp | ( | FILE * | in, | |
const double | relative_interval_radius | |||
) |
Read linear program.
Read a linear program.
References clu_init(), and Lurupa::read_lp().
void clu_set_alpha | ( | double | alpha | ) |
Set algorithm parameter alpha.
Set the algorithm parameter alpha.
References clu_init(), and Lurupa::set_alpha().
void clu_set_eta | ( | double | eta | ) |
Set algorithm parameter eta.
Set the algorithm parameter eta.
References clu_init(), and Lurupa::set_eta().
void clu_set_inflate | ( | BOOL | inflate | ) |
Set inflation.
Set the algorithm flag inflation.
References clu_init(), and Lurupa::set_inflate().
BOOL clu_set_module | ( | char * | module_path | ) |
Set solver module.
Set the solver module.
References clu_init(), and Lurupa::set_module().
BOOL clu_set_module_options | ( | PLP | lp, | |
int | argc, | |||
char * | argv[] | |||
) |
Set solver options.
Set module options.
References clu_init(), and Lurupa::set_module_options().
BOUND_STATUS clu_upper_bound | ( | PLP | lp, | |
double * | bound, | |||
int * | iterations | |||
) |
Compute upper bound.
Compute the upper bound.
References clu_init(), and Lurupa::upper_bound().