/* hookup to system */
s_xbt_swag_hookup_t constraint_set_hookup;
s_xbt_swag_hookup_t active_constraint_set_hookup;
+ s_xbt_swag_hookup_t modified_constraint_set_hookup;
s_xbt_swag_hookup_t saturated_constraint_set_hookup;
s_xbt_swag_t element_set; /* a list of lmm_mat_element_t */
int shared;
double usage;
void *id;
+ int id_int;
} s_lmm_constraint_t;
typedef struct lmm_variable {
double bound;
double value;
void *id;
- int index; /* FOR SDP ONLY */
+ int id_int;
/* \begin{For Lagrange only} */
double mu;
double new_mu;
typedef struct lmm_system {
int modified;
+ int selective_update_active; /* flag to update partially the system only selecting changed portions */
+
s_xbt_swag_t variable_set; /* a list of lmm_variable_t */
s_xbt_swag_t constraint_set; /* a list of lmm_constraint_t */
s_xbt_swag_t active_constraint_set; /* a list of lmm_constraint_t */
+ s_xbt_swag_t modified_constraint_set; /* a list of modified lmm_constraint_t */
s_xbt_swag_t saturated_variable_set; /* a list of lmm_variable_t */
s_xbt_swag_t saturated_constraint_set; /* a list of lmm_constraint_t_t */
#define make_constraint_inactive(sys,cnst) remove_active_constraint(sys,cnst)
static void lmm_var_free(lmm_system_t sys, lmm_variable_t var);
-static void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst);
+static XBT_INLINE void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst);
void lmm_print(lmm_system_t sys);