ipslv_mex.c

来自「工具箱 (整数线性规划工具箱) Matlab中使用」· C语言 代码 · 共 38 行

C
38
字号
/* This file contains a function to interface LP_SOLVE to MATLAB.   This file is not part of the LP_SOLVE package. *//* * MATLAB Compiler: 2.0.1 * Date: Fri Jul 13 15:32:32 2001 * Arguments: "-x" "ipslv"  */#ifndef MLF_V2#define MLF_V2 1#endif#include "matlab.h"#include "ipslv.h"static mlfFunctionTableEntry function_table[1]  = { { "ipslv", mlxIpslv, 7, 2 } };/* * The function "mexFunction" is a Compiler-generated mex wrapper, suitable for * building a MEX-function. It initializes any persistent variables as well as * a function table for use by the feval function. It then calls the function * "mlxIpslv". Finally, it clears the feval table and exits. */void mexFunction(int nlhs, mxArray * * plhs, int nrhs, const mxArray * * prhs) {    mlfTry {        mlfFunctionTableSetup(1, function_table);        /* mclImportGlobal(0, NULL); apparently not supported in Matlab 6*/        mlxIpslv(nlhs, plhs, nrhs, prhs);        mlfFunctionTableTakedown(1, function_table);    } mlfCatch {        mlfFunctionTableTakedown(1, function_table);        mclMexError();    } mlfEndCatch}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?