Demos files (modules/*/demos/**/*.dem.*) were not released in the public domain.
[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 //
4 // This file is released into the public domain
5
6 demopath = get_absolute_file_path("optimization.dem.gateway.sce");
7 subdemolist = ["Non linear data fitting", "datafit/datafit.dem.gateway.sce"; ...
8                "Optimisation",            "optim/optim.dem.gateway.sce"; ...
9                "fminsearch",              "neldermead/neldermead.dem.gateway.sce"];
10
11 if with_module('genetic_algorithms') then
12   subdemolist = [subdemolist; ...
13                  "Genetic algorithms", "../../genetic_algorithms/demos/genetic_algorithms.dem.gateway.sce"];
14 end 
15
16 if with_module('simulated_annealing') then
17   subdemolist = [subdemolist; ...
18                  "Simulated Annealing", "../../simulated_annealing/demos/simulated_annealing.dem.gateway.sce"];
19 end
20
21 subdemolist(:,2) = demopath + subdemolist(:,2)