Initializing help system before first use

problem.nlpgetformula

Purpose
Retrieve a single matrix formula split into tokens
Synopsis
ntypes, type, value = problem.nlpgetformula(row, parsed, type, value)
Arguments
row 
The row (i.e. xpress.constraint object, index, or name) for the formula.
parsed 
Whether the formula of the row is to be returned in internal unparsed format ( parsed=False) or parsed (reverse Polish) format ( parsed=True).
type 
(optional) A list to populate with the token types for the formula.
value 
(optional) A list to populate with the values corresponding to type.
Return value
ntypes 
The number of tokens available.
type 
The token types for the formula.
value 
The values corresponding to type.
Example
The following example retrieves the formula tokens for row 0 in parsed format:
_, type, value = p.nlpgetformula(0, True)
Further information
If you do not need the value of type or value, you can pass None for these arguments: no arrays will be allocated and None will be returned in their place.
Related topics

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