资源简介
cplex 12.4用于求解规划问题(线性规划、二次规划及混合整数规划问题),该工具箱可以在MATLAB平台下运行,可以结合yalmip工具箱使用。
代码片段和文件信息
/* --------------------------------------------------------------------------
* 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 cplex\examples\
目录 0 2015-01-28 18:45 cplex\examples\data\
文件 3219 2015-01-28 16:47 cplex\examples\data\afiro.mps
文件 1042 2015-01-28 16:47 cplex\examples\data\atsp.dat
文件 46 2015-01-28 16:47 cplex\examples\data\cutstock.dat
文件 475 2015-01-28 16:47 cplex\examples\data\diet.dat
文件 594 2015-01-28 16:47 cplex\examples\data\etsp.dat
文件 793 2015-01-28 16:47 cplex\examples\data\example.mps
文件 238 2015-01-28 16:47 cplex\examples\data\facility.dat
文件 591 2015-01-28 16:47 cplex\examples\data\infnet.net
文件 1979 2015-01-28 16:47 cplex\examples\data\location.lp
文件 789 2015-01-28 16:47 cplex\examples\data\mexample.mps
文件 32320 2015-01-28 16:47 cplex\examples\data\noswot.mps
文件 6555 2015-01-28 16:47 cplex\examples\data\p0033.mps
文件 1171 2015-01-28 16:47 cplex\examples\data\prod.lp
文件 215 2015-01-28 16:47 cplex\examples\data\qpex.lp
文件 158 2015-01-28 16:47 cplex\examples\data\rates.dat
文件 2824 2015-01-28 16:47 cplex\examples\data\sosex3.lp
文件 159 2015-01-28 16:47 cplex\examples\data\steel.dat
目录 0 2015-01-28 18:45 cplex\examples\src\
目录 0 2015-01-28 18:45 cplex\examples\src\c\
文件 16259 2015-01-28 16:47 cplex\examples\src\c\admipex1.c
文件 10864 2015-01-28 16:47 cplex\examples\src\c\admipex2.c
文件 15051 2015-01-28 16:47 cplex\examples\src\c\admipex3.c
文件 10044 2015-01-28 16:47 cplex\examples\src\c\admipex4.c
文件 18367 2015-01-28 16:47 cplex\examples\src\c\admipex5.c
文件 11942 2015-01-28 16:47 cplex\examples\src\c\admipex6.c
文件 9390 2015-01-28 16:47 cplex\examples\src\c\admipex7.c
文件 9978 2015-01-28 16:47 cplex\examples\src\c\adpreex1.c
文件 39882 2015-01-28 16:47 cplex\examples\src\c\bendersatsp.c
............此处省略1956个文件信息
相关资源
- lpc10算法代码说明
- BNT_SLP v1.5
- ModelPredictiveControlSystemDesignandImplement
- 表情识别 源码Matlab LBP+LPQ SVM PCA
- matlab 中文 help
- 四种传统算法进行DOA估计
- yalmip+cplex+matlab使用文档
- Matlab调用Cplex优化
- 最新matlab+yalmip+cplex综合能源及微电网
- 基于lpc的语音信号的分析与合成matl
- 基于MATLAB的语音信号LPC分析
- LPMS Matlab代码
- 产生各种LPI雷达信号
- Levinson-Durbin算法
- 粒子群优化CLPSO的MATLAB源代码
- LPCC特征参数提取
- alpha噪声的产生
- LPP局部保持投影MATLAB源代码
- MATLAB YALMIP工具箱调用cplex求解TSPTW
- yalmip 工具包
- my_alphanoise.rar
- lpc在matlab中的实现
- 计算lpcc的matlab程序
-
4000W无桥PFC闭环simuli
nk模型 - yalmipmatlab解决UC问题范例1补充.rar
- helpcontentsetup.msha
- matlab中cplex和yalmip新手指南
- LPP,matlab实现
- 矩形波导模式以及光纤LP模式的matla
- melp2.4k的编解码程序
评论
共有 条评论