X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/005aa4233aa5a5a11124e989887e1ddbc724c726..027f3abe8f56d9729fa87329b559a5723e34aed5:/src/surf/maxmin_private.h diff --git a/src/surf/maxmin_private.h b/src/surf/maxmin_private.h index ddb9e2adf2..1798472607 100644 --- a/src/surf/maxmin_private.h +++ b/src/surf/maxmin_private.h @@ -33,6 +33,8 @@ typedef struct lmm_constraint { s_xbt_swag_t element_set; /* a list of lmm_mat_element_t */ s_xbt_swag_t active_element_set; /* a list of lmm_mat_element_t */ double bound; + double lambda; + double new_lambda; double remaining; int shared; double usage; @@ -51,7 +53,15 @@ typedef struct lmm_variable { double bound; 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 { @@ -83,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 */