XPRSchgcoltype


Purpose
Used to change the type of a column in the matrix.
Synopsis
int XPRS_CC XPRSchgcoltype(XPRSprob prob, int nels, const int mindex[], const char qctype[]);
Arguments
prob 
The current problem.
nels 
Number of columns to change.
mindex 
Integer array of length nels containing the indices of the columns.
qctype 
Character array of length nels giving the new column types:
indicates a continuous column;
indicates a binary column;
indicates an integer column.
Example
The following changes columns 3 and 5 of the matrix to be integer and binary respectively:
mindex[0] = 3; mindex[1] = 5;
qctype[0] = "I"; qctype[1] = "B";
XPRSchgcoltype(prob,2,mindex,qctype);
Further information
1. The column types can only be changed before the MIP search is started. If XPRSchgcoltype is called after a problem has been presolved, the presolved column numbers must be supplied. It is not possible to change a column into a partial integer, semi-continuous or semi-continuous integer variable.
2. Calling XPRSchgcoltype to change any variable into a binary variable causes the bounds previously defined for the variable to be deleted and replaced by bounds of 0 and 1.
Related topics
XPRSaddcols, XPRSchgrowtype, XPRSdelcols, XPRSgetcoltype.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.