From: velho Date: Mon, 9 Jun 2008 11:26:18 +0000 (+0000) Subject: Added a function and the bound to the variable structure. X-Git-Tag: v3.3~401 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/881abd8885ef97b5157eb965c87cd71d0294aea8 Added a function and the bound to the variable structure. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5574 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index 0ebd6a41c6..7766147cc1 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -42,6 +42,7 @@ XBT_PUBLIC(lmm_variable_t) lmm_variable_new(lmm_system_t sys, void *id, double bound, int number_of_constraints); 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); XBT_PUBLIC(void) lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value); diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index c240511c34..0c524b8c21 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -203,6 +203,11 @@ double lmm_variable_getvalue(lmm_variable_t var) return (var->value); } +double lmm_variable_getbound(lmm_variable_t var) +{ + return (var->bound); +} + void lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, lmm_variable_t var, double value) {