X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fdd5a5f1bea4c3aced2cab95a9a2191b5090042d..872cbb10d995d395761a0c059588c24992266f78:/src/surf/maxmin_private.h diff --git a/src/surf/maxmin_private.h b/src/surf/maxmin_private.h index 034a25202e..1798472607 100644 --- a/src/surf/maxmin_private.h +++ b/src/surf/maxmin_private.h @@ -51,11 +51,17 @@ typedef struct lmm_variable { int cnsts_number; double weight; double bound; - double mu; - double new_mu; double value; void *id; - int index; + int index; /* FOR SDP ONLY */ + /* \begin{For Lagrange only} */ + double mu; + double new_mu; + double df; /* Total delay of flow */ + double (* func_f) (struct lmm_variable *var, double x); /* (f) */ + double (* func_fp) (struct lmm_variable *var, double x); /* (f') */ + double (* func_fpi) (struct lmm_variable *var, double x); /* (f')^{-1} */ + /* \end{For Lagrange only} */ } s_lmm_variable_t; typedef struct lmm_system { @@ -87,4 +93,8 @@ static void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst); void lmm_print(lmm_system_t sys); +extern double (* func_f_def ) (lmm_variable_t , double); +extern double (* func_fp_def ) (lmm_variable_t , double); +extern double (* func_fpi_def )(lmm_variable_t , double); + #endif /* _SURF_MAXMIN_PRIVATE_H */