-
Notifications
You must be signed in to change notification settings - Fork 2
/
compile.sh
executable file
·25 lines (25 loc) · 1.16 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if [ -z $OPTIMUSPATH ];
then
echo "Variable OPTIMUSPATH SHOULD BE SET "
else
if qmake -v > /dev/null
then
methods=("Optimus" "islandDE" "islandMultistart" "Bfgs" "IntegerGenetic" "Genetic" "DoubleGenetic" "MinCenter" "Tmlsl" "GENDE" "GCRS" "DE" "Price" "Multistart" "Pso" "iPso" "Minfinder" "NeuralMinimizer" "ParallelDe" "parallelPso" "ParallelGenetic" "pDoubleGenetic" "pdg" "PMNEW")
problems=("Feature" "GenClass" "DGenclass" "NNC" "RbfTest" "DiffEq")
(cd PROBLEMS; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/Feature; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/GenClass; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/DGenclass; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/NNC; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/RbfTest; for file in *.pro; do qmake $file; make; done)
(cd PROBLEMS/DataFitting; for file in *.pro; do qmake $file; make; done)
for str in ${methods[@]}; do
(cd src/$str; qmake; make install )
done
(cd bin; qmake ; make)
(cd bin/OptimusFIT; qmake; make)
(cd bin/NeuralTrain; qmake; make)
else
echo "qmake is not present;"
fi
fi