Originally posted by: guabiik
Yes, now i have looked better. Thanks.
But, i have another problem. I'm using now a CPXaddrows and CPXnewcols, with a and b are integers:
int status;
if ( (status=CPXnewcols(env , lp , a, obj,lb, ub, NULL, cname)) != 0 )
goto TERMINATE;
if ( (status=CPXaddrows(env , lp , 0, b , 2*b , rhs , sense, rbeg, rind, rval, NULL, NULL)) != 0 )
goto TERMINATE;
but i have errors:
cplex2.c:667:63: warning: passing argument 8 of 'CPXaddrows' from incompatible pointer type [-Wincompatible-pointer-types]
if ( (status=CPXaddrows(env , lp , 0, b , 2*b , rhs , sense, rbeg, rind, rval, NULL, NULL)) != 0 )
^
In file included from cplex2.c:3:0:
C:/Program Files/IBM/ILOG/CPLEX_Studio1261/opl/include/ilcplex/cplex.h:62:4: note: expected 'const int *' but argument is of type 'double *'
CPXaddrows (CPXCENVptr env, CPXLPptr lp, int ccnt, int rcnt,
^
cplex2.c:667:69: warning: passing argument 9 of 'CPXaddrows' from incompatible pointer type [-Wincompatible-pointer-types]
if ( (status=CPXaddrows(env , lp , 0, b , 2*b , rhs , sense, rbeg, rind, rval, NULL, NULL)) != 0 )
^
In file included from cplex2.c:3:0:
C:/Program Files/IBM/ILOG/CPLEX_Studio1261/opl/include/ilcplex/cplex.h:62:4: note: expected 'const int *' but argument is of type 'double *'
CPXaddrows (CPXCENVptr env, CPXLPptr lp, int ccnt, int rcnt,
^
#CPLEXOptimizers#DecisionOptimization