Initializing help system before first use

problem.getcoltype

problem.getcoltype


Purpose
Returns the column types for the columns in a given range.
Synopsis
problem.getcoltype (coltype, first, last)
Arguments
coltype 
Character array of length last-first+1 where the column types will be returned:
indicates a continuous variable;
indicates an integer variable;
indicates a binary variable;
indicates a semi-continuous variable;
indicates a semi-continuous integer variable;
indicates a partial integer variable.
first 
First column in the range.
last 
Last column in the range.
Example
This example finds the types for all columns in the matrix and prints them:
coltype = []
p.getcoltype (coltype, 0, p.attributes.cols - 1)
print ("coltypes:", coltype)
Related topics