git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3435
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
int iteration=0;
double tmp=0;
int i;
int iteration=0;
double tmp=0;
int i;
- FILE *gnuplot_file=NULL;
-
DEBUG0("Iterative method configuration snapshot =====>");
DEBUG1("#### Maximum number of iterations : %d", max_iterations);
DEBUG0("Iterative method configuration snapshot =====>");
DEBUG1("#### Maximum number of iterations : %d", max_iterations);
WARN0("The impossible happened, partial_diff(min) >0 && partial_diff(max) < 0");
}
}
WARN0("The impossible happened, partial_diff(min) >0 && partial_diff(max) < 0");
}
}
-
- var1->new_mu = max;
-
cnst1->new_lambda = cnst1->lambda;
cnst1->new_lambda = cnst1->lambda;
if(cnst1->new_lambda < 0){
cnst1->new_lambda = 0;
if(cnst1->new_lambda < 0){
cnst1->new_lambda = 0;
- if(XBT_LOG_ISENABLED(surf_writelambda, xbt_log_priority_debug)) {
- fclose(gnuplot_file);
- }
-
if(var1->bound > 0)
tmp += var1->mu;
if(var1->bound > 0)
tmp += var1->mu;
+ tmp = tmp - cnst1->lambda + lambda;
+
+ //un peux du bricolage pour evite la catastrophe
if(tmp==0) lambda_partial = 10e-8;
if(tmp==0) lambda_partial = 10e-8;
- lambda_partial += (-1.0 / (tmp - 3*cnst1->lambda + 3*cnst1->lambda));
+
+ lambda_partial += (-1.0 /tmp);