Initializing help system before first use

# SetIndicators(IEnumerable, Func, Func, Func) Method

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.
Namespace: Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public void SetIndicators<T>(
    	IEnumerable<T> data,
    	Func<T, Variable> indicatorVariable,
    	Func<T, bool> indicatorValue,
    	Func<T, Inequality> row
    )

#### Parameters

data IEnumerable T
  Data for which constraints are created.
indicatorVariable Func T, Variable
  Indicator variables.
indicatorValue Func T, Boolean
  Whether indicator variables should be non-zero or zero for rows to become active. If this is null then rows become active if indicator variables are non-zero.
row Func T, Inequality
  The implied rows for the indicator constraints.

#### Type Parameters

T
  Data type.

See Also

#### Reference

XpressProblem Class
SetIndicators Overload
Optimizer.Objects Namespace
Parent Topic SetIndicators Method

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