/* Bring in the CPLEX function declarations and the C library
header file stdio.h with the include of cplex.h. */
#include <ilcplex/cplex.h>
/* Bring in the declarations for the string functions */
#include <string.h>
#include <stdlib.h>
setproblemdata (char *probname_p, int *numcols_p, int *numrows_p,int *objsen_p, double *obj_p, double *rhs_p,
char *sense_p, int *matbeg_p, int *matcnt_p,int *matind_p, double *matval_p,
double *lb_p, double *ub_p, char *ctype_p
);
void main()
{
/* Declare pointers for the variables and arrays that will contain
the data which define the LP problem. The setproblemdata() routine
allocates space for the problem data. */
//定义变量
char *probname = NULL;
int numcols;
int numrows;
int objsen;
double *obj = NULL;
double *rhs = NULL;
char *sense = NULL;
int *matbeg = NULL;
int *matcnt = NULL;
CPLEX 求解过程详解,精简版
最新推荐文章于 2024-04-28 08:03:18 发布