add a hierarchy in the optimization demos
[scilab.git] / scilab / modules / optimization / demos / optimization.dem.gateway.sce
1 //
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008 - INRIA
4 //
5 // This file is distributed under the same license as the Scilab package.
6 //
7
8 demopath = get_absolute_file_path("optimization.dem.gateway.sce");
9 subdemolist = ["Non linear data fitting", "datafit/datafit.dem.gateway.sce"; ...
10                "Optimisation",            "optim/optim.dem.gateway.sce"; ...
11                "fminsearch",              "neldermead/neldermead.dem.gateway.sce"];
12
13 if with_module('genetic_algorithms') then
14   subdemolist = [subdemolist; ...
15                  "Genetic algorithms", "../../genetic_algorithms/demos/genetic_algorithms.dem.gateway.sce"];
16 end 
17
18 if with_module('simulated_annealing') then
19   subdemolist = [subdemolist; ...
20                  "Simulated Annealing", "../../simulated_annealing/demos/simulated_annealing.dem.gateway.sce"];
21 end
22
23 subdemolist(:,2) = demopath + subdemolist(:,2)