Initializing help system before first use

problem.getConstraint

problem.getConstraint


Purpose
Returns one or more constraint of a problem corresponding to one or more indices passed as arguments. These constraints are returned as Python objects and can be used to access and manipulate the problem.
Synopsis
r = problem.getConstraint (index, first, last)
Arguments
first 
(optional) The first index of the constraints to be returned. It must be between 0 and ROWS - 1.
last 
(optional) The last index of the constraints to be returned. It must be between 0 and ROWS - 1.
index 
(optional) Either an integer or a list of integers (not necessarily sorted) with the index/indices of all constraints to be returned, all between 0 and ROWS - 1
Further information
All arguments are optional. If neither of them is provided, the return value is a list with all constraints of the problem. Otherwise, either first and last or just index can be passed.
Related topics

© 2001-2019 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.