1 /* Authors: Arnaud Legrand */
3 /* This program is free software; you can redistribute it and/or modify it
4 under the terms of the license (GNU LGPL) which comes with this package. */
6 typedef long double FLOAT ;
8 typedef struct lmm_var_element *lmm_var_element_t;
9 typedef struct lmm_cnst_element *lmm_cnst_element_t;
10 typedef struct lmm_system *lmm_system_t;
12 lmm_system_t lmm_system_new(void);
13 void lmm_system_free(lmm_system_t system);
15 lmm_cnst_element_t lmm_add_constraint(lmm_system_t system, void *id, FLOAT bound_value);
16 lmm_var_element_t lmm_add_variable(lmm_system_t system, void *id, FLOAT weight_value, int number_of_constraints);
17 void lmm_extend_cnsts(lmm_system_t system, lmm_cnst_element_t cnsts,
18 lmm_var_element_t var, FLOAT value);
20 void lmm_del_constraint(lmm_system_t system, lmm_cnst_element_t cnsts);
21 void lmm_del_var(lmm_system_t system, lmm_var_element_t var);
23 void lmm_solve(lmm_system_t system, void ***p_id_table, int *p_id_table_size);