Initializing help system before first use

QPair Class

Pair of variables in a quadratic expression. Instances of this class are used to represent pairs of variables in quadratic expressions. Variables in this instance are always ordered according to a canonical ordering, so (v1,v2) and (v2,v1) will map to the same representation. Instances can represent linear terms as well. In that case var2 is invalid and .IsLinear() returns true. Instances can also represent constant terms. In that case var1 and var2 are both invalid and .IsConstant() returns true.
Inheritance Hierarchy
System.Object
   Optimizer.Maps.MapKey2 < Variable, Variable >
     Optimizer.Maps.ComparableMapKey2 < Variable, Variable >
       Optimizer.Objects.QPair

Namespace:   Optimizer.Objects
Assembly:  xprsdn (in xprsdn.dll) Version: 44.01.01
Syntax
C#
public sealed class QPair : ComparableMapKey2<Variable, Variable>

The QPair type exposes the following members.

Constructors
  Name Description
Public method QPair(QPair)
Copy an instance.
Public method QPair(Variable, Variable)
Create a new pair of variables. The variables passed to this constructor will be ordered canonically, i.e., a pair (v1,v2) may be stored as (v2,v1) if v2 comes before v1 in the ordering of variables.
Top
Properties
  Name Description
Public property Key1
Key number 1.
(Inherited from MapKey2<K1, K2>.)
Public property Key2
Key number 2.
(Inherited from MapKey2<K1, K2>.)
Public property Var1
Public property Var2
Top
Methods
  Name Description
Public method CompareTo (Inherited from ComparableMapKey2<K1, K2>.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from MapKey2<K1, K2>.)
Public method GetHashCode (Inherited from MapKey2<K1, K2>.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsConstant
Test whether this pair represents a constant term.
Public method IsLinear
Test whether this pair represents a linear term.
Public method ToString (Overrides Object.ToString().)
Top
See Also

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