Initializing help system before first use

SetIndicators Method

Overload List
  Name Description
Public method SetIndicators(Variable, Boolean, Inequality)
Add indicator constraints to this model. The provided arrays must all have length at least count and for any i in 0.. count-1 an indicator constraint is constructed from indicatorVariable[i], indicatorValue[i] and row[i]. If indicatorValue[i] is true then the constraints states that if indicatorVariable[i] is 1 (one), then row[i] must be Satisfied (and if indicator is 0 (zero) then row[i] is ignored). Otherwise, row[i] must be satisfied if indicator[i] is 0 (zero) and is ignored otherwise. All referenced variables and rows must exist.
Public method SetIndicators(Int32, Int32, Int32, Int32)
Specifies that a set of rows in the matrix will be treated as indicator constraints during a tree search. An indicator constraint is made of a condition and a constraint. The condition is of the type "bin = value", where bin is a binary variable and value is either 0 or 1. The constraint is any matrix row (may be linear, quadratic or general nonlinear). During tree search, a row configured as an indicator constraint is enforced only when condition holds, that is only if the indicator variable bin has the specified value. Note that every row may only get assigned a single indicator variable and term. If a row needs to be activated by multiple different terms, the row needs to be duplicated so that each term can be assigned to a distinct row. If the indicator variable should be changed, the old term needs to be deleted first (by calling delIndicators or by calling this function with a comps argument of 0) before assigning a new one.
(Inherited from XPRSprob.)
Public method SetIndicators<T>(ICollection<T>, Func<T, Variable>, Func<T, Boolean>, Func<T, Inequality>)
Add indicator constraints to this model. The function iterates through data and calls the provided functions for each element found. The return values of the functions are used to construct an indicator constraint. For a fixed t, if IndicatorValue(t) returns true then the created constraint states that if IndicatorVariable(t) is 1 (one), then Row(t) must be satisfied and is ignored otherwise. Otherwise, Row(t) must be satisfied if IndicatorVariable(t) is 0 (zero) and is ignored otherwise. All referenced variables and rows must exist.
Public method SetIndicators<T>(IEnumerable<T>, Func<T, Variable>, Func<T, Boolean>, Func<T, Inequality>)
Add indicator constraints to this model. The function iterates through data and calls the provided functions for each element found. The return values of the functions are used to construct an indicator constraint. For a fixed t, if IndicatorValue(t) returns true then the created constraint states that if IndicatorVariable(t) is 1 (one), then Row(t) must be satisfied and is ignored otherwise. Otherwise, Row(t) must be satisfied if IndicatorVariable(t) is 0 (zero) and is ignored otherwise. All referenced variables and rows must exist.
Public method SetIndicators(Int32, Func<Int32, Variable>, Func<Int32, Boolean>, Func<Int32, Inequality>)
Add indicator constraints to this model. The function iterates through [0, ... ,count[ and calls the provided functions for each in this interval. The return values of the functions are used to construct an indicator constraint. For a fixed t, if IndicatorValue(t) returns true then the created constraint states that if IndicatorVariable(t) is 1 (one), then Row(t) must be satisfied and is ignored otherwise. Otherwise, Row(t) must be satisfied if IndicatorVariable(t) is 0 (zero) and is ignored otherwise. All referenced variables and rows must exist.
Public method SetIndicators<T>(T, Func<T, Variable>, Func<T, Boolean>, Func<T, Inequality>)
Add indicator constraints to this model. The function iterates through data and calls the provided functions for each element found. The return values of the functions are used to construct an indicator constraint. For a fixed t, if IndicatorValue(t) returns true then the created constraint states that if IndicatorVariable(t) is 1 (one), then Row(t) must be satisfied and is ignored otherwise. Otherwise, Row(t) must be satisfied if IndicatorVariable(t) is 0 (zero) and is ignored otherwise. All referenced variables and rows must exist.
Top
See Also

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