X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5657b6cbb51a403dbc777e905664dc17ec49f327..b9734b132bcaf8a26ec1dbfcc71176e7182b5b0e:/src/include/surf/maxmin.h diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index ba06c74030..acd57fb07e 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2004-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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 @@ -33,7 +33,6 @@ static XBT_INLINE int double_equals(double value1, double value2) XBT_PUBLIC(lmm_system_t) lmm_system_new(int selective_update); XBT_PUBLIC(void) lmm_system_free(lmm_system_t sys); -void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var); XBT_PUBLIC(lmm_constraint_t) lmm_constraint_new(lmm_system_t sys, void *id, double bound_value); @@ -42,11 +41,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);