Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove lmm_elem_set_value (Not used)
authorPaul Bédaride <paul.bedaride@gmail.com>
Tue, 4 Feb 2014 15:52:38 +0000 (16:52 +0100)
committerPaul Bédaride <paul.bedaride@gmail.com>
Wed, 12 Feb 2014 09:29:37 +0000 (10:29 +0100)
src/include/surf/maxmin.h
src/surf/maxmin.cpp

index fa6295b..86600a4 100644 (file)
@@ -203,17 +203,6 @@ XBT_PUBLIC(void) lmm_expand(lmm_system_t sys, lmm_constraint_t cnst,
 void lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst,
                     lmm_variable_t var, double value);
 
-/**
- * @brief Change the value of the coefficient between a constraint and a variable
- * 
- * @param sys A system
- * @param cnst A constraint
- * @param var A variable
- * @param value The new value of the coefficient between a constraint and a variable
- */
-void lmm_elem_set_value(lmm_system_t sys, lmm_constraint_t cnst,
-                        lmm_variable_t var, double value);
-
 /**
  * @brief Get the numth constraint associated to the variable
  * 
index 9242405..1c584ec 100644 (file)
@@ -390,23 +390,6 @@ void lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst,
     lmm_expand(sys, cnst, var, value);
 }
 
-void lmm_elem_set_value(lmm_system_t sys, lmm_constraint_t cnst,
-                        lmm_variable_t var, double value)
-{
-  int i;
-
-  for (i = 0; i < var->cnsts_number; i++)
-    if (var->cnsts[i].constraint == cnst)
-      break;
-
-  if (i < var->cnsts_number) {
-    var->cnsts[i].value = value;
-    sys->modified = 1;
-    lmm_update_modified_set(sys, cnst);
-  } else
-    DIE_IMPOSSIBLE;
-}
-
 lmm_constraint_t lmm_get_cnst_from_var(lmm_system_t /*sys*/,
                                                   lmm_variable_t var,
                                                   int num)