Initializing help system before first use

problem.getAttrib

Purpose
Retrieves one or more attributes of a problem.
Synopsis
a = problem.getAttrib(attr1, attr2, ...)
Example
p = xpress.problem()
p.read("example.lp")
print(p.getAttrib('cols'), "columns and ",
       p.getAttrib('rows'), "rows")
prob_attrib = p.getAttrib()
attr_subset = p.getAttrib(['cols', 'rows'])
Further information
This function can be passed either a single attribute name, whose value will be returned, or a list of attribute names, in which case the return value is a dictionary associating each key in the list with its value. If no argument is provided, a dictionary containing all attributes of the problem will be returned. Attributes can also be specified by id. In that case the keys for those attributes in a returned dictionary will be their ids.

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.