Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion etc/FOSSEE_Optimization_Toolbox.start
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ else
link(lib_path + "/libcoinmumps.so");
link(lib_path + "/libipopt.so");
link(lib_path + "/libCbc.so");
link(lib_path + '/libbonmin.so');
link(lib_path + "/libbonmin.so");
link(lib_path + "/libecos.so");
link(lib_path + "/libecos_bb.so");

end
exec(pathconvert(root_tlbx + filesep() + "sci_gateway" + filesep() + "loader_gateway.sce",%f));
Expand Down
154 changes: 0 additions & 154 deletions sci_gateway/cpp/FOSSEE_Optimization_Toolbox.c

This file was deleted.

53 changes: 0 additions & 53 deletions sci_gateway/cpp/FOSSEE_Optimization_Toolbox.def

This file was deleted.

Binary file removed sci_gateway/cpp/FOSSEE_Optimization_Toolbox.dll
Binary file not shown.
Binary file removed sci_gateway/cpp/FOSSEE_Optimization_Toolbox.exp
Binary file not shown.
Binary file removed sci_gateway/cpp/FOSSEE_Optimization_Toolbox.lib
Binary file not shown.
70 changes: 0 additions & 70 deletions sci_gateway/cpp/Makelib.mak

This file was deleted.

Binary file not shown.
Binary file removed sci_gateway/cpp/Release/globals.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/read_mps.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_LinProg.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_QuadNLP.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_iofunc.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_ipopt.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_ipoptfminbnd.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_ipoptfmincon.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_ipoptfminunc.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_minbndNLP.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_minconNLP.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_minuncNLP.obj
Binary file not shown.
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_addrowcol.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_get_dbl_arr.obj
Binary file not shown.
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_get_matrix.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_get_num_int.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_getinfinity.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_getobjsense.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_getrowact.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_isenvactive.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_load_mps.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_loadproblem.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_openclose.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_primalbound.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_remove.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_rowmod.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_set_indices.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_set_variables.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_setcolsoln.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_setobj.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_solution.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_solve.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_sym_varbounds.obj
Binary file not shown.
Binary file removed sci_gateway/cpp/Release/sci_vartype.obj
Binary file not shown.
30 changes: 22 additions & 8 deletions sci_gateway/cpp/builder_gateway_cpp.sce
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ Function_Names = [
"solveminuncp","sci_solveminuncp"
"solveminbndp","sci_solveminbndp"
"solveminconp","sci_solveminconp"


//ecos function
"solveecos","sci_ecos"
];

//Name of all the files to be compiled
Expand Down Expand Up @@ -154,6 +156,8 @@ Files = [
"sci_ipoptfmincon.cpp",
"sci_LinProg.cpp",
"read_mps.cpp"

'ecos.cpp'
]
else
//Name of All the Functions
Expand Down Expand Up @@ -327,21 +331,31 @@ Version = opt(2);
if getos()=="Windows" then
third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
lib_base_dir = third_dir + filesep() + 'windows' + filesep() + 'lib' + filesep() + Version + filesep();
inc_base_dir = third_dir + filesep() + 'windows' + filesep() + 'include' + filesep() + 'coin';
inc_base_dir = third_dir + filesep() + 'windows' + filesep() + 'include';
inc_coin_dir = inc_base_dir + filesep() + 'coin';
inc_ecos_dir = inc_base_dir + filesep() + 'ecos';
C_Flags=['-D__USE_DEPRECATED_STACK_FUNCTIONS__ -w -I '+path_builder+' '+ '-I '+inc_base_dir+' ']
C_Flags = C_Flags + ['-I ' + inc_coin_dir + ' '];
C_Flags = C_Flags + ['-I ' + inc_ecos_dir + ' '];
Linker_Flag = [lib_base_dir+"libClp.lib "+lib_base_dir+"libCgl.lib "+lib_base_dir+"libOsi.lib "+lib_base_dir+"libOsiClp.lib "+lib_base_dir+"libCoinUtils.lib "+lib_base_dir+"libSymphony.lib "+lib_base_dir+"IpOptFSS.lib "+lib_base_dir+"IpOpt-vc10.lib "]

Linker_Flag = Linker_Flag + [lib_base_dir + "AMD.lib "];
Linker_Flag = Linker_Flag + [lib_base_dir + "LDL.lib "];
Linker_Flag = Linker_Flag + [lib_base_dir + "ECOS.lib "];
Linker_Flag = Linker_Flag + [lib_base_dir + "ECOS_BB.lib "];
else
third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
lib_base_dir = third_dir + filesep() + 'linux' + filesep() + 'lib' + filesep() + Version + filesep();
inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include' + filesep() + 'coin';

inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include';
inc_coin_dir = inc_base_dir + filesep() + 'coin';
inc_ecos_dir = inc_base_dir + filesep() + 'ecos';
C_Flags=["-D__USE_DEPRECATED_STACK_FUNCTIONS__ -w -fpermissive -I"+path_builder+" -I"+inc_base_dir+" -Wl,-rpath="+lib_base_dir+" "]

C_Flags = C_Flags + ["-I" + inc_coin_dir + " "];
C_Flags = C_Flags + ["-I" + inc_ecos_dir + " "];
Linker_Flag = ["-L"+lib_base_dir+"libSym"+" "+"-L"+lib_base_dir+"libipopt"+" "+"-L"+lib_base_dir+"libClp"+" "+"-L"+lib_base_dir+"libOsiClp"+" "+"-L"+lib_base_dir+"libCoinUtils" ]

Linker_Flag = Linker_Flag + ["-L" + lib_base_dir + "libecos "];
Linker_Flag = Linker_Flag + ["-L" + lib_base_dir + "libecos_bb "];
end

tbx_build_gateway(toolbox_title,Function_Names,Files,get_absolute_file_path("builder_gateway_cpp.sce"), [], Linker_Flag, C_Flags);

clear toolbox_title Function_Names Files Linker_Flag C_Flags;
clear toolbox_title Function_Names Files Linker_Flag C_Flags;
6 changes: 4 additions & 2 deletions sci_gateway/cpp/ecos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
// Email: toolbox@scilab.in

#include "sci_iofunc.hpp"

#include "ecos.h"
#include "ecos_bb.h"

extern "C"
{
#include <api_scilab.h>
#include <Scierror.h>
#include <BOOL.h>
#include <localization.h>
#include <sciprint.h>
#include <ecos.h>
#include <ecos_bb.h>

// function to convert int to idxint
idxint * int2idxint(int * sci_int, int n) {
Expand Down
Loading