cplex 12.4用于求解规划问题(线性规划、二次规划及混合整数规划问题),该工具箱可以在MATLAB平台下运行,可以结合yalmip工具箱使用。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-01-28 18:45 cplex
目录 0 2015-01-28 18:45 cplexexamples
目录 0 2015-01-28 18:45 cplexexamplesdata
文件 3219 2015-01-28 16:47 cplexexamplesdataafiro.mps
文件 1042 2015-01-28 16:47 cplexexamplesdataatsp.dat
文件 46 2015-01-28 16:47 cplexexamplesdatacutstock.dat
文件 475 2015-01-28 16:47 cplexexamplesdatadiet.dat
文件 594 2015-01-28 16:47 cplexexamplesdataetsp.dat
文件 793 2015-01-28 16:47 cplexexamplesdataexample.mps
文件 238 2015-01-28 16:47 cplexexamplesdatafacility.dat
文件 591 2015-01-28 16:47 cplexexamplesdatainfnet.net
文件 1979 2015-01-28 16:47 cplexexamplesdatalocation.lp
文件 789 2015-01-28 16:47 cplexexamplesdatamexample.mps
文件 32320 2015-01-28 16:47 cplexexamplesdata
oswot.mps
文件 6555 2015-01-28 16:47 cplexexamplesdatap0033.mps
文件 1171 2015-01-28 16:47 cplexexamplesdataprod.lp
文件 215 2015-01-28 16:47 cplexexamplesdataqpex.lp
文件 158 2015-01-28 16:47 cplexexamplesdata
ates.dat
文件 2824 2015-01-28 16:47 cplexexamplesdatasosex3.lp
文件 159 2015-01-28 16:47 cplexexamplesdatasteel.dat
目录 0 2015-01-28 18:45 cplexexamplessrc
目录 0 2015-01-28 18:45 cplexexamplessrcc
文件 16259 2015-01-28 16:47 cplexexamplessrccadmipex1.c
文件 10864 2015-01-28 16:47 cplexexamplessrccadmipex2.c
文件 15051 2015-01-28 16:47 cplexexamplessrccadmipex3.c
文件 10044 2015-01-28 16:47 cplexexamplessrccadmipex4.c
文件 18367 2015-01-28 16:47 cplexexamplessrccadmipex5.c
文件 11942 2015-01-28 16:47 cplexexamplessrccadmipex6.c
文件 9390 2015-01-28 16:47 cplexexamplessrccadmipex7.c
文件 9978 2015-01-28 16:47 cplexexamplessrccadpreex1.c
文件 39882 2015-01-28 16:47 cplexexamplessrccendersatsp.c
............此处省略1956个文件信息
/* --------------------------------------------------------------------------
* File: admipex1.c
* Version 12.5
* --------------------------------------------------------------------------
* Licensed Materials - Property of IBM
* 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21
* Copyright IBM Corporation 1997 2012. All Rights Reserved.
*
* US Government Users Restricted Rights - Use duplication or
* disclosure restricted by GSA ADP Schedule Contract with
* IBM Corp.
* --------------------------------------------------------------------------
*/
/* admipex1.c - Use the node branch and solve callbacks
for optimizing a MIP problem */
/* To run this example command line arguments are required:
admipex1 [-r] filename
where
filename Name of the file with .mps .lp or .sav
extension and a possible additional .gz
extension.
-r Indicates that callbacks will refer to the
presolved model.
Example:
admipex1 mexample.mps
admipex1 -r mexample.mps */
/* Bring in the CPLEX function declarations and the C library
header file stdio.h with the following single include */
#include
/* Bring in the declarations for the string and character functions
malloc fabs and floor */
#include
#include
#include
#include
/* Declarations for functions in this program */
static int CPXPUBLIC
usersolve (CPXCENVptr env void *cbdata int wherefrom
void *cbhandle int *useraction_p);
static int CPXPUBLIC
usersetbranch (CPXCENVptr env void *cbdata int wherefrom
void *cbhandle int brtype int sos int nodes
int bdcnt const double *nodeest const int *nodebeg
const int *indices const char *lu const int *bd
int *useraction_p);
static int CPXPUBLIC
userselectnode (CPXCENVptr env void *cbdata int wherefrom
void *cbhandle int *nodeid_p
int *useraction_p);
static void
free_and_null (char **ptr)
usage (char *progname);
int
main (int argc
char *argv[])
{
int status = 0;
/* Declare and allocate space for the variables and arrays where
we will store the optimization results including the status
objective value and variable values */
int solstat;
double objval;
double *x = NULL;
CPXENVptr env = NULL;
CPXLPptr lp = NULL;
int j;
int cur_numcols;
int wantorig = 1;
int nameind = 1;
/* Check the command line arguments */
if ( argc != 2 ) {
if ( argc != 3 ||
argv[1][0] != ‘-‘ ||
argv[1][1] != ‘r‘ ) {
usage (argv[0]);
goto TERMINATE;
}
wantorig = 0;
n
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-01-28 18:45 cplex
目录 0 2015-01-28 18:45 cplexexamples
目录 0 2015-01-28 18:45 cplexexamplesdata
文件 3219 2015-01-28 16:47 cplexexamplesdataafiro.mps
文件 1042 2015-01-28 16:47 cplexexamplesdataatsp.dat
文件 46 2015-01-28 16:47 cplexexamplesdatacutstock.dat
文件 475 2015-01-28 16:47 cplexexamplesdatadiet.dat
文件 594 2015-01-28 16:47 cplexexamplesdataetsp.dat
文件 793 2015-01-28 16:47 cplexexamplesdataexample.mps
文件 238 2015-01-28 16:47 cplexexamplesdatafacility.dat
文件 591 2015-01-28 16:47 cplexexamplesdatainfnet.net
文件 1979 2015-01-28 16:47 cplexexamplesdatalocation.lp
文件 789 2015-01-28 16:47 cplexexamplesdatamexample.mps
文件 32320 2015-01-28 16:47 cplexexamplesdata
oswot.mps
文件 6555 2015-01-28 16:47 cplexexamplesdatap0033.mps
文件 1171 2015-01-28 16:47 cplexexamplesdataprod.lp
文件 215 2015-01-28 16:47 cplexexamplesdataqpex.lp
文件 158 2015-01-28 16:47 cplexexamplesdata
ates.dat
文件 2824 2015-01-28 16:47 cplexexamplesdatasosex3.lp
文件 159 2015-01-28 16:47 cplexexamplesdatasteel.dat
目录 0 2015-01-28 18:45 cplexexamplessrc
目录 0 2015-01-28 18:45 cplexexamplessrcc
文件 16259 2015-01-28 16:47 cplexexamplessrccadmipex1.c
文件 10864 2015-01-28 16:47 cplexexamplessrccadmipex2.c
文件 15051 2015-01-28 16:47 cplexexamplessrccadmipex3.c
文件 10044 2015-01-28 16:47 cplexexamplessrccadmipex4.c
文件 18367 2015-01-28 16:47 cplexexamplessrccadmipex5.c
文件 11942 2015-01-28 16:47 cplexexamplessrccadmipex6.c
文件 9390 2015-01-28 16:47 cplexexamplessrccadmipex7.c
文件 9978 2015-01-28 16:47 cplexexamplessrccadpreex1.c
文件 39882 2015-01-28 16:47 cplexexamplessrccendersatsp.c
............此处省略1956个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)