* Bug #5548 fixed - Error messages in some examples of help pages of simulated Annealing. 99/10999/2
Charlotte HECQUET [Mon, 25 Mar 2013 17:08:01 +0000 (18:08 +0100)]
Change-Id: I44c0bf1ec859d43f7203ec5ed1c83613a94afadb

scilab/CHANGES_5.4.X
scilab/modules/simulated_annealing/help/en_US/utilities/compute_initial_temp.xml
scilab/modules/simulated_annealing/help/en_US/utilities/neigh_func_default.xml

index c4ebbe6..343e749 100644 (file)
@@ -223,6 +223,8 @@ Bug fixes
 * Bug #5478 fixed - Scilab could not be started with a non readable/writeable
                     SCIHOME.
 
+* Bug #5548 fixed - Error messages in some examples of help pages of simulated Annealing.
+
 * Bug #5576 fixed - interp() help page has been improved.
 
 * Bug #6583 fixed - jmat() was poorly documented.
index cdac1df..5809cb8 100644 (file)
@@ -121,9 +121,9 @@ It_Pre = 100;
 x_test = neigh_func_default(x0);
 
 saparams = init_param();
-saparams = add_param(comp_t_params,'neigh_func', neigh_func_default);
+saparams = add_param(saparams,'neigh_func', neigh_func_default);
 
-T0 = compute_initial_temp(x0, rastrigin, Proba_start, It_Pre, saparams);
+T0 = compute_initial_temp(x0, f, Proba_start, It_Pre, saparams);
  ]]></programlisting>
     </refsection>
     <refsection role="see also">
index 2a6ff4c..fafe425 100644 (file)
@@ -85,7 +85,7 @@ It_intern   = 1000;
 x_test = neigh_func_default(x0,%nan);
 
 saparams = init_param();
-saparams = add_param(comp_t_params,'neigh_func', neigh_func_default);
+saparams = add_param(saparams,'neigh_func', neigh_func_default);
 
 T0 = compute_initial_temp(x0, rastrigin, Proba_start, It_Pre, saparams);
 Log = %T;