Problem retrieving routines¶
-
Problem.
get_obj_dir
()¶ Retrieve optimization direction flag
Returns: the objective direction, either 'minimize'
or'maximize'
Return type: str
-
Problem.
get_row_name
(int row)¶ Retrieve row name
Parameters: row ( int
) – the index of the rowReturns: the row name Return type: str
-
Problem.
get_row_name_if
(int row, names_preferred=False)¶ Parameters: Returns: the row name or index
Return type:
-
Problem.
get_col_name
(int col)¶ Retrieve column name
Parameters: col ( int
) – the index of the columnReturns: the problem name Return type: str
-
Problem.
get_col_name_if
(int col, names_preferred=False)¶ Parameters: Returns: the column name or index
Return type:
-
Problem.
get_row_or_col_name
(int ind)¶ Retrieve row or column name
Parameters: ind ( int
) – the row/column indexReturns: a pair, either 'row'
or'col'
and the row or column nameReturn type: ( str
,str
)
-
Problem.
get_row_or_col_name_if
(int ind, names_preferred=False)¶ Parameters: Returns: a pair, either
'row'
or'col'
and the row or column nameReturn type:
-
Problem.
get_row_type
(row)¶ Retrieve row type
Parameters: row ( int
orstr
) – the index or name of the rowReturns: the row type, either 'free'
,'dominating'
,'dominated'
,'bounded'
, or'fixed'
Return type: str
-
Problem.
get_row_lb
(row)¶ Retrieve row lower bound
Parameters: row ( int
orstr
) – the index or name of the rowReturns: the lower bound Return type: float
-
Problem.
get_row_ub
(row)¶ Retrieve row upper bound
Parameters: row ( int
orstr
) – the index or name of the rowReturns: the upper bound Return type: float
-
Problem.
get_col_type
(col)¶ Retrieve column type
Parameters: col ( int
orstr
) – the index or name of the columnReturns: the column type, either 'free'
,'dominating'
,'dominated'
,'bounded'
, or'fixed'
Return type: str
-
Problem.
get_col_lb
(col)¶ Retrieve column lower bound
Parameters: col ( int
orstr
) – the index or name of the columnReturns: the lower bound Return type: float
-
Problem.
get_row_ub
(row) Retrieve row upper bound
Parameters: row ( int
orstr
) – the index or name of the rowReturns: the upper bound Return type: float
-
Problem.
get_obj_coef
(col)¶ Retrieve obj. coefficient
Parameters: col ( int
orstr
) – the index or name of the columnReturns: the coefficient value Return type: float
-
Problem.
get_num_nz
()¶ Retrieve number of constraint coefficients
Returns: the number of (non-zero) constraint coefficients Return type: int
-
Problem.
get_mat_row
(row, names_preferred=False)¶ Retrieve row of the constraint matrix
Parameters: Returns: the row
Rtype coeffs: Mapping
from column names (str
strings) to coefficient values (Real
)