- lmm_constraint_t lmm_get_cnst_from_var(lmm_system_t sys,
- lmm_variable_t var, int num);
- int lmm_get_number_of_cnst_from_var(lmm_system_t sys,
- lmm_variable_t var);
- lmm_variable_t lmm_get_var_from_cnst(lmm_system_t sys,
- lmm_constraint_t cnst,
- lmm_element_t * elem);
+/**
+ * @brief Add value to the coefficient between a constraint and a variable or
+ * create one
+ *
+ * @param sys A system
+ * @param cnst A constraint
+ * @param var A variable
+ * @param value The value to add to the coefficient associated to the variable in the constraint
+ */
+void lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst,
+ lmm_variable_t var, double value);
+
+/**
+ * @brief Get the numth constraint associated to the variable
+ *
+ * @param sys The system associated to the variable (not used)
+ * @param var A variable
+ * @param num The rank of constraint we want to get
+ * @return The numth constraint
+ */
+lmm_constraint_t lmm_get_cnst_from_var(lmm_system_t sys,
+ lmm_variable_t var, int num);
+
+/**
+ * @brief Get the weigth of the numth constraint associated to the variable
+ *
+ * @param sys The system associated to the variable (not used)
+ * @param var A variable
+ * @param num The rank of constraint we want to get
+ * @return The numth constraint
+ */
+double lmm_get_cnst_weight_from_var(lmm_system_t sys, lmm_variable_t var,
+ int num);
+
+/**
+ * @brief Get the number of constraint associated to a variable
+ *
+ * @param sys The system associated to the variable (not used)
+ * @param var A variable
+ * @return The number of constraint associated to the variable
+ */
+int lmm_get_number_of_cnst_from_var(lmm_system_t sys, lmm_variable_t var);