* Bug #14929 fixed - setlanguage failed on main demos labels
[scilab.git] / scilab / modules / optimization / demos / optimization.dem.gateway.sce
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2008 - INRIA
3 // Copyright (C) 2010-2011 - DIGITEO - Allan CORNET
4 //
5 // This file is released under the 3-clause BSD license. See COPYING-BSD.
6
7 function subdemolist = demo_gateway()
8
9     demopath = get_absolute_file_path("optimization.dem.gateway.sce");
10     _("Optimization and Simulation");  // lets gettext() harvesting it
11     add_demo("Optimization and Simulation", demopath+"optimization.dem.gateway.sce");
12
13     subdemolist = [_("Non linear data fitting"), "datafit/datafit.dem.gateway.sce"; ..
14     _("Optimisation"),            "optim/optim.dem.gateway.sce"; ..
15     _("fminsearch"),              "neldermead/neldermead.dem.gateway.sce"; ..
16     _("ICSE"),              "icse/icse.dem.gateway.sce"];
17
18     if with_module("genetic_algorithms") then
19         subdemolist = [subdemolist; ..
20         _("Genetic algorithms"), "../../genetic_algorithms/demos/genetic_algorithms.dem.gateway.sce"];
21     end
22
23     if with_module("simulated_annealing") then
24         subdemolist = [subdemolist; ..
25         _("Simulated Annealing"), "../../simulated_annealing/demos/simulated_annealing.dem.gateway.sce"];
26     end
27
28     subdemolist(:,2) = demopath + subdemolist(:,2);
29 endfunction
30
31 subdemolist = demo_gateway();
32 clear demo_gateway;