s_lmm_constraint_t() = default;
s_lmm_constraint_t(void* id_value, double bound_value);
- /** @brief Share a constraint. FIXME: name is misleading */
- void shared() { sharing_policy = 0; }
+ /** @brief Unshare a constraint. */
+ void unshare() { sharing_policy = 0; }
/**
* @brief Check if a constraint is shared (shared by default)
* @brief Create a new Linear MaxMim system
* @param selective_update whether we should do lazy updates
*/
- s_lmm_system_t(bool selective_update);
+ explicit s_lmm_system_t(bool selective_update);
/** @brief Free an existing Linear MaxMin system */
~s_lmm_system_t();
xbt_swag_remove(var, &variable_set);
xbt_swag_remove(var, &saturated_variable_set);
}
- void remove_constraint(lmm_constraint_t cnst) // FIXME: unused
- {
- xbt_swag_remove(cnst, &constraint_set);
- xbt_swag_remove(cnst, &saturated_constraint_set);
- }
void make_constraint_active(lmm_constraint_t cnst) { xbt_swag_insert(cnst, &active_constraint_set); }
void make_constraint_inactive(lmm_constraint_t cnst)
{
void check_concurrency();
public:
- int modified;
+ bool modified;
s_xbt_swag_t variable_set; /* a list of lmm_variable_t */
s_xbt_swag_t active_constraint_set; /* a list of lmm_constraint_t */
s_xbt_swag_t saturated_variable_set; /* a list of lmm_variable_t */