A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a disk attachment check and add a tesh test to detect invalid platform...
[simgrid.git]
/
src
/
surf
/
lagrange.cpp
diff --git
a/src/surf/lagrange.cpp
b/src/surf/lagrange.cpp
index
8128625
..
c62055b
100644
(file)
--- a/
src/surf/lagrange.cpp
+++ b/
src/surf/lagrange.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
3
. The SimGrid Team.
+/* Copyright (c) 2007-201
4
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-157,9
+157,10
@@
static double dual_objective(xbt_swag_t var_list, xbt_swag_t cnst_list)
obj += var->mu * var->bound;
}
obj += var->mu * var->bound;
}
- xbt_swag_foreach(_cnst, cnst_list)
+ xbt_swag_foreach(_cnst, cnst_list)
{
cnst = (lmm_constraint_t)_cnst;
obj += cnst->lambda * cnst->bound;
cnst = (lmm_constraint_t)_cnst;
obj += cnst->lambda * cnst->bound;
+ }
return obj;
}
return obj;
}