Initializing help system before first use

# XPRSprob.ConstraintCreator Class

Class to buffer constraints and create them in chunks.
Inheritance Hierarchy
SystemObject
OptimizerXPRSprobRowCreator
OptimizerXPRSprobConstraintCreator
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public sealed class ConstraintCreator : XPRSprobRowCreator

The XPRSprobConstraintCreator type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| XPRSprobConstraintCreator(XPRSprob, Boolean, Boolean) | Create a new creator with default buffer sizes.
| XPRSprobConstraintCreator(XPRSprob, Int32, Int32, Boolean, Boolean) | Create a new creator with specified buffers sizes.

Top
Methods

| Name | Description
--- | --- | ---
| AddGeneralConstraint | Add a general constraint in a single shot.
| AddNonzero(Int32, Double) | Add a single non-zero to the current row. (Inherited from XPRSprobRowCreator)
| AddNonzero(Int32, Int32, Double) | Add a single quadratic non-zero to the current row. Note: The information is passed to the low-level API as is! Check the C reference documentation for how constraints are represented there. In particular, check whether off-diagonal elements may have to be doubled or halved. (Inherited from XPRSprobRowCreator)
| AddNonzeros | Add coefficients to the current row. (Inherited from XPRSprobRowCreator)
| AddPWL | Add a piecewise linear constraint.
| AddRhs | Add a value to the right-hand side of the current row. (Inherited from XPRSprobRowCreator)
| AddRow | Add a row in a single shot. (Inherited from XPRSprobRowCreator)
| AddSet | Add a new SOS constraint.
| AddToken | Append a token to this extractor. (Inherited from XPRSprobRowCreator)
| ApplyRange | Apply a range constraint to the row that is currently built. The function assumes that the right-hand side has already been setup. It is an error to modify type or right-hand side of the current row after calling this function. (Inherited from XPRSprobRowCreator)
| CheckForVariables | Check whether referencing Variable instances should raise an exception. If it should, then raise the required exception. (Inherited from XPRSprobRowCreator)
| Commit | Flush all buffers. (Overrides XPRSprobRowCreatorCommit)
| ConditionalCommit | Check whether buffers are very big and need committing. If the buffer sizes exceed the thresholds then call commit. (Overrides XPRSprobRowCreatorConditionalCommit)
| DereferenceVariable | Derefence a value. Converts a variable object into a variable index. This is different from x.GetIndex() as it also checks whether the problem for which we are extracting the current formula is currently in a state in which variables can be Dereferenced (i.e. not in a callback and not in a presolved state). If it is not then an exception is raised. (Inherited from XPRSprobRowCreator)
| EndExpression | Signal that a (sub)expression has been extracted. (Inherited from XPRSprobRowCreator)
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| FinishRow | Tell this instance that all data for the current rows has been added. This calls ConditionalCommit(). (Inherited from XPRSprobRowCreator)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetPostfixExtractor | Get a IPostfixExtractor that can extract formulas into this RowCreator. (Inherited from XPRSprobRowCreator)
| GetRowCount | Get the current row count, including buffered rows that are not yet committed. (Inherited from XPRSprobRowCreator)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| NormalizeCurrentRow | Sort and merge duplicates in the current row. Must be called before FinishRow() is called. (Inherited from XPRSprobRowCreator)
| SetInitialInequalities | Set the default number of inequalities we expect a single instance of a constraint creator to create. This can be adjusted to improve memory performance.
| SetInitialNonzeros | Set the default number of non-zeros we expect a single instance of a constraint creator to create. This can be adjusted to improve memory performance.
| SetName | Set the name of the current row. (Inherited from XPRSprobRowCreator)
| SetType | Set the type of the current row. (Inherited from XPRSprobRowCreator)
| StartExpression | (Inherited from XPRSprobRowCreator)
| ToString | Returns a string that represents the current object. (Inherited from Object)
| Undo | Undo all changes ever done by this instance. The creator should not be used after calling this function. (Overrides XPRSprobRowCreatorUndo)

Top
Fields

| Name | Description
--- | --- | ---
| colinds | Non-zero indices. (Inherited from XPRSprobRowCreator)
| created | The number of rows this instance created. (Inherited from XPRSprobRowCreator)
| firstRow | objects.Index of first row this instance will create. (Inherited from XPRSprobRowCreator)
| formulaRows | Indices of rows that contain formulas. This can be null if no formulas have been collected so far. (Inherited from XPRSprobRowCreator)
| formulaStart | Where formulas start in formulaType and formulaValue. (Inherited from XPRSprobRowCreator)
| formulaType | Formula token types. (Inherited from XPRSprobRowCreator)
| formulaValue | Formula token values. (Inherited from XPRSprobRowCreator)
| prob | The problem instance to which things are added. (Inherited from XPRSprobRowCreator)
| qcoef | Value of quadratic non-zero triplets. This may be null if there are no quadratic triples. (Inherited from XPRSprobRowCreator)
| qind1 | First variable of quadratic non-zero triplets. This may be null if there are no quadratic triples. (Inherited from XPRSprobRowCreator)
| qind2 | Second variable of quadratic non-zero triplets. This may be null if there are no quadratic triples. (Inherited from XPRSprobRowCreator)
| rhsvals | Inequality right-hand side value. This is always one element more than the number of rows actually completed so far. (Inherited from XPRSprobRowCreator)
| rowcoefs | Non-zero coefficients. (Inherited from XPRSprobRowCreator)
| start | Inequality starting offsets. This is always one element more than the number of rows actually completed so far. (Inherited from XPRSprobRowCreator)
| types | objects.Inequality types. It is assumed that this is called at least one for each row before FinishRow() is called. If you don't do that then the created row data will be off. (Inherited from XPRSprobRowCreator)

Top
See Also

#### Reference

Optimizer Namespace
Covered Topics

- XPRSprob.ConstraintCreator Constructor
- ConstraintCreator Methods
- ConstraintCreator Fields

Parent Topic Optimizer

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