| Overview | Group | Index | Concepts | 
The routine CPXnewcols adds empty columns to a specified
 CPLEX problem object. This routine may be called any time after a call to
 CPXcreateprob.
For each column, the user can specify the objective coefficient, the
 lower and upper bounds, the variable type, and name of the variable. The
 added columns are indexed to put them at the end of the problem. Thus, if
 ccnt columns are added to a problem object already having k
 columns, the new columns have indices  k, k+1, ...
 k+ccnt-1. The constraint coefficients in the new columns are
 zero; the constraint coefficients can be changed with calls to
 CPXchgcoef, CPXchgcoeflist, or
 CPXaddrows.
The routine CPXnewcols is very similar to the routine
 CPXnewrows. It can be used to add variables to a problem
 object without specifying the matrix coefficients.
CPX_CONTINUOUS | 'C' | continuous variable j | 
CPX_BINARY | 'B' | binary variable j | 
CPX_INTEGER | 'I' | general integer variable j | 
CPX_SEMICONT | 'S' | semi-continuous variable j | 
CPX_SEMIINT | 'N' | semi-integer variable j | 
Example
status = CPXnewcols (env, lp, ccnt, obj, lb, ub, NULL, NULL);
See also the example lpex8.c in the
 ILOG CPLEX User's Manual and in the standard distribution.
| env | A pointer to the CPLEX environment as returned by   | 
| lp | A pointer to a CPLEX problem object as returned by   | 
| ccnt | An integer that indicates the number of new variables being added to the problem object.  | 
| obj | An array of length   | 
| lb | An array of length   | 
| ub | An array of length   | 
| xctype | An array of length   | 
| colname | An array of length   |