* Bugs 5824, 7732, 15344 fixed: datafit() upgraded + page overhauled
[scilab.git] / scilab / modules / optimization / demos / optimization.dem.gateway.sce
index f1c4594..8271c62 100644 (file)
@@ -6,24 +6,26 @@
 
 function subdemolist = demo_gateway()
 
-  demopath = get_absolute_file_path("optimization.dem.gateway.sce");
-  add_demo(gettext("Optimization and Simulation"), demopath+"optimization.dem.gateway.sce");
+    demopath = get_absolute_file_path("optimization.dem.gateway.sce");
+    _("Optimization and Simulation");  // lets gettext() harvesting it
+    add_demo("Optimization and Simulation", demopath+"optimization.dem.gateway.sce");
 
-  subdemolist = [_("Non linear data fitting"), "datafit/datafit.dem.gateway.sce"; ..
-                 _("Optimisation"),            "optim/optim.dem.gateway.sce"; ..
-                 _("fminsearch"),              "neldermead/neldermead.dem.gateway.sce"];
+    subdemolist = [
+    _("datafit: Nonlinear fitting"), "datafit/datafit.dem.gateway.sce"
+    _("Optimisation"),  "optim/optim.dem.gateway.sce"
+    _("fminsearch"),    "neldermead/neldermead.dem.gateway.sce"
+    _("ICSE"),          "icse/icse.dem.gateway.sce"
+    ];
 
-  if with_module('genetic_algorithms') then
     subdemolist = [subdemolist; ..
-                 _("Genetic algorithms"), "../../genetic_algorithms/demos/genetic_algorithms.dem.gateway.sce"];
-  end
+    _("Genetic algorithms"), "genetic/genetic_algorithms.dem.gateway.sce"];
 
-  if with_module('simulated_annealing') then
-    subdemolist = [subdemolist; ..
-                 _("Simulated Annealing"), "../../simulated_annealing/demos/simulated_annealing.dem.gateway.sce"];
-  end
+    if with_module("simulated_annealing") then
+        subdemolist = [subdemolist; ..
+        _("Simulated Annealing"), "../../simulated_annealing/demos/simulated_annealing.dem.gateway.sce"];
+    end
 
-  subdemolist(:,2) = demopath + subdemolist(:,2);
+    subdemolist(:,2) = demopath + subdemolist(:,2);
 endfunction
 
 subdemolist = demo_gateway();