X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b188a3ca7fe91cf125a08229fb4fe51eee26e6d..b7726f2e9e252f8442b008a34bca31716c3b6c6b:/src/include/surf/maxmin.h diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index 5ebf9da119..7cd260d570 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -7,10 +7,10 @@ #ifndef _SURF_MAXMIN_H #define _SURF_MAXMIN_H -#include #include "portable.h" #include "xbt/misc.h" #include "surf/datatypes.h" +#include extern double sg_maxmin_precision; #define MAXMIN_PRECISION sg_maxmin_precision @@ -42,11 +42,13 @@ int lmm_constraint_is_shared(lmm_constraint_t cnst); void lmm_constraint_free(lmm_system_t sys, lmm_constraint_t cnst); +double lmm_constraint_get_usage(lmm_constraint_t cnst); + XBT_PUBLIC(lmm_variable_t) lmm_variable_new(lmm_system_t sys, void *id, double weight_value, double bound, int number_of_constraints); -void lmm_variable_free(lmm_system_t sys, lmm_variable_t var); +XBT_PUBLIC(void) lmm_variable_free(lmm_system_t sys, lmm_variable_t var); XBT_PUBLIC(double) lmm_variable_getvalue(lmm_variable_t var); XBT_PUBLIC(double) lmm_variable_getbound(lmm_variable_t var); @@ -59,6 +61,8 @@ void lmm_elem_set_value(lmm_system_t sys, lmm_constraint_t cnst, lmm_constraint_t lmm_get_cnst_from_var(lmm_system_t sys, lmm_variable_t var, int num); +double lmm_get_cnst_weight_from_var(lmm_system_t sys, lmm_variable_t var, + int num); int lmm_get_number_of_cnst_from_var(lmm_system_t sys, lmm_variable_t var); lmm_variable_t lmm_get_var_from_cnst(lmm_system_t sys, lmm_constraint_t cnst,