Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Types and function prototypes for the max_min linear solver.
[simgrid.git] / src / surf / maxmin_private.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 #include "surf/maxmin.h"
7 #include "../src/xbt/fifo_private.h" /* Yeah! I know. It is very dirty. */
8
9 typedef struct lmm_mat_element {
10   s_xbt_fifo_item_t row;
11   FLOAT value;
12 } s_mat_element_t;
13
14 typedef struct lmm_cnst_element {
15   s_xbt_fifo_t row; /* in fact a list of lmm_mat_element_t */
16   void *id;
17   FLOAT bound;
18   FLOAT usage;
19 } s_lmm_cnst_element_t;
20
21 typedef struct lmm_var_element {
22   void *id;
23   s_mat_element_t *cnsts;
24   int cnsts_size;
25   FLOAT value;
26   FLOAT bound;
27 } s_lmm_var_element_t;
28
29 typedef struct lmm_system {
30   s_xbt_fifo_item_t var_set; /* in fact a list of lmm_var_element_t */
31   s_xbt_fifo_item_t cnst_set; /* in fact a list of lmm_cnst_element_t */
32 };