diff options
author | Harpreet | 2015-12-31 16:03:57 +0530 |
---|---|---|
committer | Harpreet | 2015-12-31 16:03:57 +0530 |
commit | d5356061fbd3a9b3052dee25bd9c82c375c42e22 (patch) | |
tree | 72a37d5161eb0f4b895513c46c68e031d1200520 /sci_gateway | |
parent | eb9ca1191c94059cd7adcf69805906c809fe9712 (diff) | |
download | FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.gz FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.bz2 FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.zip |
Macros example updated
Diffstat (limited to 'sci_gateway')
32 files changed, 293 insertions, 339 deletions
diff --git a/sci_gateway/cpp/.sci_QuadNLP.cpp.swp b/sci_gateway/cpp/.sci_QuadNLP.cpp.swp Binary files differnew file mode 100644 index 0000000..764077c --- /dev/null +++ b/sci_gateway/cpp/.sci_QuadNLP.cpp.swp diff --git a/sci_gateway/cpp/QuadNLP.hpp b/sci_gateway/cpp/QuadNLP.hpp index ec40195..4020913 100644 --- a/sci_gateway/cpp/QuadNLP.hpp +++ b/sci_gateway/cpp/QuadNLP.hpp @@ -1,14 +1,13 @@ -/* - * Quadratic Programming Toolbox for Scilab using IPOPT library - * Authors : - Sai Kiran - Keyur Joshi - Iswarya - - - * Optimizing (minimizing) the quadratic objective function having any number of variables and linear constraints. - * -*/ +// 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, Sai Kiran, Keyur Joshi, Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #ifndef __QuadNLP_HPP__ #define __QuadNLP_HPP__ diff --git a/sci_gateway/cpp/builder_gateway_cpp.sce b/sci_gateway/cpp/builder_gateway_cpp.sce index 225edd8..6e4adf7 100644 --- a/sci_gateway/cpp/builder_gateway_cpp.sce +++ b/sci_gateway/cpp/builder_gateway_cpp.sce @@ -1,13 +1,13 @@ // Copyright (C) 2015 - IIT Bombay - FOSSEE // -// Author: Keyur Joshi, Sai Kiran, Iswarya and Harpreet Singh -// Organization: FOSSEE, IIT Bombay -// Email: harpreet.mertia@gmail.com // 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 mode(-1) lines(0) diff --git a/sci_gateway/cpp/globals.cpp b/sci_gateway/cpp/globals.cpp index 4b5d99c..92767bc 100644 --- a/sci_gateway/cpp/globals.cpp +++ b/sci_gateway/cpp/globals.cpp @@ -1,9 +1,14 @@ -/* - * Implementation Symphony Tool Box for Scilab - * globals.cpp - * contains definitions of global variables and functions - * By Keyur Joshi and Sai Kiran - */ +// 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: Keyur Joshi and Sai Kiran +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> #include <sciprint.h> diff --git a/sci_gateway/cpp/libsymphonytools.c b/sci_gateway/cpp/libsymphonytools.c deleted file mode 100644 index 1007284..0000000 --- a/sci_gateway/cpp/libsymphonytools.c +++ /dev/null @@ -1,144 +0,0 @@ -#ifdef __cplusplus -extern "C" { -#endif -#include <mex.h> -#include <sci_gateway.h> -#include <api_scilab.h> -#include <MALLOC.h> -static int direct_gateway(char *fname,void F(void)) { F();return 0;}; -extern Gatefunc sci_sym_open; -extern Gatefunc sci_sym_close; -extern Gatefunc sci_sym_isEnvActive; -extern Gatefunc sci_sym_set_defaults; -extern Gatefunc sci_sym_set_int_param; -extern Gatefunc sci_sym_get_int_param; -extern Gatefunc sci_sym_set_dbl_param; -extern Gatefunc sci_sym_get_dbl_param; -extern Gatefunc sci_sym_set_str_param; -extern Gatefunc sci_sym_get_str_param; -extern Gatefunc sci_sym_getInfinity; -extern Gatefunc sci_sym_loadProblemBasic; -extern Gatefunc sci_sym_loadProblem; -extern Gatefunc sci_sym_load_mps; -extern Gatefunc sci_sym_get_num_int; -extern Gatefunc sci_sym_get_num_int; -extern Gatefunc sci_sym_get_num_int; -extern Gatefunc sci_sym_isContinuous; -extern Gatefunc sci_sym_isBinary; -extern Gatefunc sci_sym_isInteger; -extern Gatefunc sci_sym_set_continuous; -extern Gatefunc sci_sym_set_integer; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_setVarBound; -extern Gatefunc sci_sym_setVarBound; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_setObjCoeff; -extern Gatefunc sci_sym_getObjSense; -extern Gatefunc sci_sym_setObjSense; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_get_dbl_arr; -extern Gatefunc sci_sym_setConstrBound; -extern Gatefunc sci_sym_setConstrBound; -extern Gatefunc sci_sym_setConstrType; -extern Gatefunc sci_sym_get_matrix; -extern Gatefunc sci_sym_get_row_sense; -extern Gatefunc sci_sym_addConstr; -extern Gatefunc sci_sym_addVar; -extern Gatefunc sci_sym_delete_cols; -extern Gatefunc sci_sym_delete_rows; -extern Gatefunc sci_sym_getPrimalBound; -extern Gatefunc sci_sym_setPrimalBound; -extern Gatefunc sci_sym_setColSoln; -extern Gatefunc sci_sym_solve; -extern Gatefunc sci_sym_get_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_get_solver_status; -extern Gatefunc sci_sym_getVarSoln; -extern Gatefunc sci_sym_getObjVal; -extern Gatefunc sci_sym_get_iteration_count; -extern Gatefunc sci_sym_getRowActivity; -static GenericTable Tab[]={ - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_open,"sym_open"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_close,"sym_close"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_isEnvActive,"sym_isEnvActive"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_defaults,"sym_resetParams"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_int_param,"sym_setIntParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_int_param,"sym_getIntParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_dbl_param,"sym_setDblParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_param,"sym_getDblParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_str_param,"sym_setStrParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_str_param,"sym_getStrParam"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getInfinity,"sym_getInfinity"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_loadProblemBasic,"sym_loadProblemBasic"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_loadProblem,"sym_loadProblem"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_load_mps,"sym_loadMPS"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_num_int,"sym_getNumConstr"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_num_int,"sym_getNumVar"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_num_int,"sym_getNumElements"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_isContinuous,"sym_isContinuous"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_isBinary,"sym_isBinary"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_isInteger,"sym_isInteger"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_continuous,"sym_setContinuous"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_set_integer,"sym_setInteger"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getVarLower"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getVarUpper"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setVarBound,"sym_setVarLower"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setVarBound,"sym_setVarUpper"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getObjCoeff"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setObjCoeff,"sym_setObjCoeff"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getObjSense,"sym_getObjSense"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setObjSense,"sym_setObjSense"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getRhs"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getConstrRange"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getConstrLower"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_dbl_arr,"sym_getConstrUpper"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setConstrBound,"sym_setConstrLower"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setConstrBound,"sym_setConstrUpper"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setConstrType,"sym_setConstrType"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_matrix,"sym_getMatrix"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_row_sense,"sym_getConstrSense"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_addConstr,"sym_addConstr"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_addVar,"sym_addVar"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_delete_cols,"sym_deleteVars"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_delete_rows,"sym_deleteConstrs"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getPrimalBound,"sym_getPrimalBound"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setPrimalBound,"sym_setPrimalBound"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_setColSoln,"sym_setVarSoln"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_solve,"sym_solve"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_status,"sym_getStatus"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isOptimal"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isInfeasible"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isAbandoned"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isIterLimitReached"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isTimeLimitReached"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_solver_status,"sym_isTargetGapAchieved"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getVarSoln,"sym_getVarSoln"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getObjVal,"sym_getObjVal"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_get_iteration_count,"sym_getIterCount"}, - {(Myinterfun)sci_gateway_without_putlhsvar,sci_sym_getRowActivity,"sym_getConstrActivity"}, -}; - -int C2F(libsymphonytools)() -{ - Rhs = Max(0, Rhs); - if (*(Tab[Fin-1].f) != NULL) - { - if(pvApiCtx == NULL) - { - pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); - } - pvApiCtx->pstName = (char*)Tab[Fin-1].name; - (*(Tab[Fin-1].f))(Tab[Fin-1].name,Tab[Fin-1].F); - } - return 0; -} -#ifdef __cplusplus -} -#endif diff --git a/sci_gateway/cpp/libsymphonytools.so b/sci_gateway/cpp/libsymphonytools.so Binary files differdeleted file mode 100755 index 31e63b1..0000000 --- a/sci_gateway/cpp/libsymphonytools.so +++ /dev/null diff --git a/sci_gateway/cpp/sci_QuadNLP.cpp b/sci_gateway/cpp/sci_QuadNLP.cpp index 50e8109..b1a0e04 100644 --- a/sci_gateway/cpp/sci_QuadNLP.cpp +++ b/sci_gateway/cpp/sci_QuadNLP.cpp @@ -1,10 +1,13 @@ -/* - * Quadratic Programming Toolbox for Scilab using IPOPT library - * Authors : - Sai Kiran - Keyur Joshi - Iswarya - */ +// 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, Sai Kiran, Keyur Joshi, Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include "QuadNLP.hpp" #include "IpIpoptData.hpp" diff --git a/sci_gateway/cpp/sci_iofunc.cpp b/sci_gateway/cpp/sci_iofunc.cpp index 04b5639..e92c318 100644 --- a/sci_gateway/cpp/sci_iofunc.cpp +++ b/sci_gateway/cpp/sci_iofunc.cpp @@ -1,6 +1,14 @@ -// Symphony Toolbox for Scilab -// (Definition of) Functions for input and output from Scilab -// By Keyur Joshi +// 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: Keyur Joshi, Harpreet Singh +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "api_scilab.h" #include "Scierror.h" diff --git a/sci_gateway/cpp/sci_iofunc.hpp b/sci_gateway/cpp/sci_iofunc.hpp index 3833777..fc379f4 100644 --- a/sci_gateway/cpp/sci_iofunc.hpp +++ b/sci_gateway/cpp/sci_iofunc.hpp @@ -1,6 +1,13 @@ -// Symphony Toolbox for Scilab -// (Declaration of) Functions for input and output from Scilab -// By Keyur Joshi +// 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: Keyur Joshi, Harpreet Singh +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #ifndef SCI_IOFUNCHEADER #define SCI_IOFUNCHEADER diff --git a/sci_gateway/cpp/sci_ipopt.cpp b/sci_gateway/cpp/sci_ipopt.cpp index 7094615..cbb71df 100644 --- a/sci_gateway/cpp/sci_ipopt.cpp +++ b/sci_gateway/cpp/sci_ipopt.cpp @@ -1,11 +1,13 @@ -/* - * Quadratic Programming Toolbox for Scilab using IPOPT library - * Authors : - Sai Kiran - Keyur Joshi - Iswarya - Harpreet Singh - */ +// 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, Sai Kiran, Keyur Joshi, Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include "sci_iofunc.hpp" #include "IpIpoptApplication.hpp" diff --git a/sci_gateway/cpp/sci_solver_status_query_functions.cpp b/sci_gateway/cpp/sci_solver_status_query_functions.cpp index eb64bd1..2927717 100644 --- a/sci_gateway/cpp/sci_solver_status_query_functions.cpp +++ b/sci_gateway/cpp/sci_solver_status_query_functions.cpp @@ -1,9 +1,13 @@ -/* - * Implementation of Symphony Tool Box for Scilab - * solver_status_query_functions.cpp - * contains Solver Status Query Functions (7 functions) - * Author: Sai Kiran - */ +// 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: Sai Kiran +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include <symphony.h> #include <sci_iofunc.hpp> diff --git a/sci_gateway/cpp/sci_sym_addrowcol.cpp b/sci_gateway/cpp/sci_sym_addrowcol.cpp index 4e1d76e..7c852f9 100644 --- a/sci_gateway/cpp/sci_sym_addrowcol.cpp +++ b/sci_gateway/cpp/sci_sym_addrowcol.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Functions to add a new row or column - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_getinfinity.cpp b/sci_gateway/cpp/sci_sym_getinfinity.cpp index c7fe243..20937d0 100644 --- a/sci_gateway/cpp/sci_sym_getinfinity.cpp +++ b/sci_gateway/cpp/sci_sym_getinfinity.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Provides the Symphony infinity value - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_getobjsense.cpp b/sci_gateway/cpp/sci_sym_getobjsense.cpp index 3df325c..23b9291 100644 --- a/sci_gateway/cpp/sci_sym_getobjsense.cpp +++ b/sci_gateway/cpp/sci_sym_getobjsense.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * <Description> - * <Author(s)> - */ +// 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: Sai Kiran, Keyur Joshi, Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_getrowact.cpp b/sci_gateway/cpp/sci_sym_getrowact.cpp index ebfd9ff..63b9e15 100644 --- a/sci_gateway/cpp/sci_sym_getrowact.cpp +++ b/sci_gateway/cpp/sci_sym_getrowact.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Function to get the row activity after solving - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_isenvactive.cpp b/sci_gateway/cpp/sci_sym_isenvactive.cpp index 96d5976..a0e3f55 100644 --- a/sci_gateway/cpp/sci_sym_isenvactive.cpp +++ b/sci_gateway/cpp/sci_sym_isenvactive.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Check if Symphony environment is active - * Made by Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_load_mps.cpp b/sci_gateway/cpp/sci_sym_load_mps.cpp index 7f000fb..7c87b8b 100644 --- a/sci_gateway/cpp/sci_sym_load_mps.cpp +++ b/sci_gateway/cpp/sci_sym_load_mps.cpp @@ -1,9 +1,14 @@ -/* - * Implementation Symphony Tool Box for Scilab - * template.cpp - * contains function for loading .mps file to symphony - * By Iswarya - */ +// 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: Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_loadproblem.cpp b/sci_gateway/cpp/sci_sym_loadproblem.cpp index b732eeb..5294082 100644 --- a/sci_gateway/cpp/sci_sym_loadproblem.cpp +++ b/sci_gateway/cpp/sci_sym_loadproblem.cpp @@ -1,8 +1,15 @@ -/* - * Symphony Toolbox - * Explicit problem loaders - * Made by Keyur Joshi - */ + +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_openclose.cpp b/sci_gateway/cpp/sci_sym_openclose.cpp index 4bab3e1..f77a98b 100644 --- a/sci_gateway/cpp/sci_sym_openclose.cpp +++ b/sci_gateway/cpp/sci_sym_openclose.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Tool Box for Scilab - * contains functions that opens and closes the symphony environment - * By Keyur Joshi, Iswarya - */ +// 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: Keyur Joshi, Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_primalbound.cpp b/sci_gateway/cpp/sci_sym_primalbound.cpp index 7e79d87..d5b4d3f 100644 --- a/sci_gateway/cpp/sci_sym_primalbound.cpp +++ b/sci_gateway/cpp/sci_sym_primalbound.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Functions for getting/setting the primal bound - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_remove.cpp b/sci_gateway/cpp/sci_sym_remove.cpp index be9c72b..0289064 100644 --- a/sci_gateway/cpp/sci_sym_remove.cpp +++ b/sci_gateway/cpp/sci_sym_remove.cpp @@ -1,9 +1,14 @@ -/* - * Implementation Symphony Tool Box for Scilab - * set_sym_remove.cpp - * contains function for removing columns and rows - * By Iswarya - */ +// 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: Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> extern sym_environment* global_sym_env;//defined in globals.cpp diff --git a/sci_gateway/cpp/sci_sym_rowmod.cpp b/sci_gateway/cpp/sci_sym_rowmod.cpp index ec966d0..3819d4e 100644 --- a/sci_gateway/cpp/sci_sym_rowmod.cpp +++ b/sci_gateway/cpp/sci_sym_rowmod.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Functions for modifying constraints - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_set_indices.cpp b/sci_gateway/cpp/sci_sym_set_indices.cpp index 6b8a35a..4e1577d 100644 --- a/sci_gateway/cpp/sci_sym_set_indices.cpp +++ b/sci_gateway/cpp/sci_sym_set_indices.cpp @@ -1,9 +1,14 @@ -/* - * Implementation Symphony Tool Box for Scilab - * sci_sym_set_indices.cpp - * contains functions for setting index variables as continuous and integer values - * By Iswarya - */ +// 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: Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_set_variables.cpp b/sci_gateway/cpp/sci_sym_set_variables.cpp index 384de6f..9368d69 100644 --- a/sci_gateway/cpp/sci_sym_set_variables.cpp +++ b/sci_gateway/cpp/sci_sym_set_variables.cpp @@ -1,9 +1,14 @@ -/* - * Implementation Symphony Tool Box for Scilab - * set_variables.cpp - * contains function for setting environment variables to their default and userdefined values in symphony - * By Iswarya - */ +// 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: Iswarya +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include <symphony.h> extern sym_environment* global_sym_env;//defined in globals.cpp diff --git a/sci_gateway/cpp/sci_sym_setcolsoln.cpp b/sci_gateway/cpp/sci_sym_setcolsoln.cpp index ca43779..aff6b4f 100644 --- a/sci_gateway/cpp/sci_sym_setcolsoln.cpp +++ b/sci_gateway/cpp/sci_sym_setcolsoln.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Function to set the solution to a known one - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_setobj.cpp b/sci_gateway/cpp/sci_sym_setobj.cpp index 3a4691a..571f752 100644 --- a/sci_gateway/cpp/sci_sym_setobj.cpp +++ b/sci_gateway/cpp/sci_sym_setobj.cpp @@ -1,8 +1,13 @@ -/* - * Symphony Toolbox - * Functions for setting the coefficients of the objective and the sense (minimization/maximization) - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_solution.cpp b/sci_gateway/cpp/sci_sym_solution.cpp index dff3b60..a918ac4 100644 --- a/sci_gateway/cpp/sci_sym_solution.cpp +++ b/sci_gateway/cpp/sci_sym_solution.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Provides the solution after the problem is solved - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_sym_solve.cpp b/sci_gateway/cpp/sci_sym_solve.cpp index 4abb268..a0af480 100644 --- a/sci_gateway/cpp/sci_sym_solve.cpp +++ b/sci_gateway/cpp/sci_sym_solve.cpp @@ -1,8 +1,13 @@ -/* - * Implementation Symphony Tool Box for Scilab - * Contains sym_solve function - * Author : Sai Kiran - */ +// 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: Sai Kiran +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include <symphony.h> #include <sci_iofunc.hpp> diff --git a/sci_gateway/cpp/sci_sym_varbounds.cpp b/sci_gateway/cpp/sci_sym_varbounds.cpp index e0fa6ab..b650111 100644 --- a/sci_gateway/cpp/sci_sym_varbounds.cpp +++ b/sci_gateway/cpp/sci_sym_varbounds.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Functions for setting the upper and lower bounds of the variables - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sci_vartype.cpp b/sci_gateway/cpp/sci_vartype.cpp index e6656a7..cc75735 100644 --- a/sci_gateway/cpp/sci_vartype.cpp +++ b/sci_gateway/cpp/sci_vartype.cpp @@ -1,8 +1,14 @@ -/* - * Symphony Toolbox - * Provides information about variables: is it continuous/integer/boolean? - * By Keyur Joshi - */ +// 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: Keyur Joshi +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + #include "symphony.h" #include "sci_iofunc.hpp" diff --git a/sci_gateway/cpp/sym_data_query_functions.cpp b/sci_gateway/cpp/sym_data_query_functions.cpp index 9f38094..ea9fe1b 100644 --- a/sci_gateway/cpp/sym_data_query_functions.cpp +++ b/sci_gateway/cpp/sym_data_query_functions.cpp @@ -1,9 +1,13 @@ -/* - * Implementation Symphony Tool Box for Scilab - * sym_data_query_functions.cpp - * contains Data Query Functions( 13 functions) - * Author: Sai Kiran - */ +// 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: Sai Kiran +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in #include <symphony.h> #include <sci_iofunc.hpp> diff --git a/sci_gateway/cpp/template.cpp b/sci_gateway/cpp/template.cpp deleted file mode 100644 index a835fc3..0000000 --- a/sci_gateway/cpp/template.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Symphony Toolbox - * <Description> - * <Author(s)> - */ -#include "symphony.h" -#include "sci_iofunc.hpp" - -extern sym_environment* global_sym_env; //defined in globals.cpp - -extern "C" { -#include "api_scilab.h" -#include "Scierror.h" -#include "sciprint.h" -#include "BOOL.h" -#include <localization.h> - -int sci_template(char *fname){ - - //error management variable - SciErr sciErr; - int iRet; - - //data declarations - - //ensure that environment is active - if(global_sym_env==NULL){ - sciprint("Error: Symphony environment not initialized. Please run 'sym_open()' first.\n"); - return 1; - } - - //code to check arguments and get them - CheckInputArgument(pvApiCtx, , ) ; - CheckOutputArgument(pvApiCtx, , ) ; - - //code to process input - - //code to give output - - return 0; -} - -} |