summaryrefslogtreecommitdiff
path: root/newstructure/etc/FOSSEE_Optimization_Toolbox.start
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/etc/FOSSEE_Optimization_Toolbox.start
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/etc/FOSSEE_Optimization_Toolbox.start')
-rw-r--r--newstructure/etc/FOSSEE_Optimization_Toolbox.start84
1 files changed, 84 insertions, 0 deletions
diff --git a/newstructure/etc/FOSSEE_Optimization_Toolbox.start b/newstructure/etc/FOSSEE_Optimization_Toolbox.start
new file mode 100644
index 0000000..a3edc7c
--- /dev/null
+++ b/newstructure/etc/FOSSEE_Optimization_Toolbox.start
@@ -0,0 +1,84 @@
+// Copyright (C) 2015 - IIT Bombay - FOSSEE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Harpreet Singh
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+mprintf("Start FOSSEE Optimization Toolbox\n");
+
+etc_tlbx = get_absolute_file_path("FOSSEE_Optimization_Toolbox.start");
+etc_tlbx = getshortpathname(etc_tlbx);
+root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\"));
+
+//Load functions library
+// =============================================================================
+mprintf("\tLoad macros\n");
+pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
+symphony_lib = lib(pathmacros);
+clear pathmacros;
+
+// load gateways
+// =============================================================================
+
+mprintf("\tLoad gateways\n");
+[a, opt] = getversion();
+Version = opt(2);
+ilib_verbose(0);
+if (getos()=="Windows") then
+ mprintf("\Toolbox is not developed for windows\n");
+ return;
+else
+ lib_path = root_tlbx + '/thirdparty/linux/lib/' + Version;
+ link(lib_path + '/libcoinblas.so');
+ link(lib_path + '/libcoinlapack.so');
+ link(lib_path + '/libCoinUtils.so');
+ link(lib_path + '/libcoinmumps.so');
+ link(lib_path + '/libClp.so');
+ link(lib_path + '/libClpSolver.so');
+ link(lib_path + '/libOsi.so');
+ link(lib_path + '/libOsiClp.so');
+ link(lib_path + '/libCgl.so');
+ link(lib_path + '/libCbc.so');
+ link(lib_path + '/libCbcSolver.so');
+ link(lib_path + '/libOsiCbc.so');
+ link(lib_path + '/libipopt.so');
+ link(lib_path + '/libcoinblas.so');
+ link(lib_path + '/libcoinlapack.so');
+ link(lib_path + '/libbonmin.so');
+end
+exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f));
+
+// Load and add help chapter
+// =============================================================================
+if ( %t ) then
+if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad help\n");
+ path_addchapter = pathconvert(root_tlbx+"/jar");
+ if ( isdir(path_addchapter) <> [] ) then
+ add_help_chapter("FOSSEE_Optimization_Toolbox", path_addchapter, %F);
+ clear add_help_chapter;
+ end
+ clear path_addchapter;
+end
+end
+
+// add demos
+// =============================================================================
+
+if ( %t ) then
+if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad demos\n");
+ pathdemos = pathconvert(root_tlbx+"/demos/sci_FOSSEE_Optimization_Toolbox.dem.gateway.sce",%f,%t);
+ add_demo("FOSSEE_Optimization_Toolbox",pathdemos);
+ clear pathdemos ;
+end
+end
+
+// =============================================================================
+
+clear etc_tlbx root_tlbx Version a opt lib_path;