Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
eed02f5a568cfe33c13dcc51034a3b1d52fbf52a
[simgrid.git] / src / include / surf / maxmin.h
1 /* Authors: Arnaud Legrand                                                  */
2
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. */
5
6 typedef long double FLOAT ;
7
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;
11
12 lmm_system_t lmm_system_new(void);
13 void lmm_system_free(lmm_system_t system);
14
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);
19
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);
22
23 void lmm_solve(lmm_system_t system, void ***p_id_table, int *p_id_table_size);