Class Configuration
Specifies fundamental behavior of the Model, Solver, VariableCollections, etc.
Inheritance
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Configuration
Assembly: Optimization.Configuration.dll
Syntax
public class Configuration
Constructors
Configuration()
Declaration
public Configuration()
Properties
AbsOperatorReplacement
The Abs-Operator-Replacement
Declaration
public AbsOperatorReplacement AbsOperatorReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| AbsOperatorReplacement |
CeilOperatorReplacement
The Ceil-Operator-Replacement
Declaration
public CeilOperatorReplacement CeilOperatorReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| CeilOperatorReplacement |
ComputeRemovedVariables
Computes a set of variables that are removed in preprocessing of the the solver. Default is false. This computation requires an additional step and takes some time and memory.
Declaration
public bool ComputeRemovedVariables { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CopySolutionToModel
True: Will copy the solution to the model variables after every Solve(), default: true
Declaration
public bool CopySolutionToModel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
DeterministicModelGeneration
Gets or sets a value indicating whether the model should be generated in a deterministic order.
Declaration
public bool DeterministicModelGeneration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Epsilon
Epsilon for double comparison
Declaration
public double Epsilon { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
FloorOperatorReplacement
The Floor-Operator-Replacement
Declaration
public FloorOperatorReplacement FloorOperatorReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| FloorOperatorReplacement |
ImplicationConstraintReplacement
The Where-Constraint-Replacement
Declaration
public ImplicationConstraintReplacement? ImplicationConstraintReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ImplicationConstraintReplacement> |
IndexValidationStyle
Sets the mode to validate indices of a VariableCollection; "heuristic" preserves the index set when a new VariableCollection is creates; Disabled disables all validations; Complete updates the index sets with every variable created "Heuristic" is default
Declaration
public IndexValidationStyle IndexValidationStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| IndexValidationStyle |
MaximumNameLength
Gets the maximum length for generated variable and constraint names.
null: Unlimited.
Declaration
public int? MaximumNameLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
MaxOperatorReplacement
The Max-Operator-Replacement
Declaration
public MaxOperatorReplacement MaxOperatorReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| MaxOperatorReplacement |
MinOperatorReplacement
The Min-Operator-Replacement
Declaration
public MinOperatorReplacement MinOperatorReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| MinOperatorReplacement |
ModelBehavior
'auto' will turn on automatic variable adding, i.e. when you add constraints and objectives the variables in them will be added automatically, but never automatically removed (default), 'manual' will turn this feature off and you need to add variables manually to the model
Declaration
public ModelBehavior ModelBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelBehavior |
NameHandling
Gets or sets the style of name handling. Default is uniqueshortnames, which saves memory and cpu time but generates cryptic names
Declaration
public NameHandlingStyle NameHandling { get; set; }
Property Value
| Type | Description |
|---|---|
| NameHandlingStyle |
NativeMultiObjectiveSupport
Declaration
public NativeMultiObjectiveSupport? NativeMultiObjectiveSupport { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<NativeMultiObjectiveSupport> |
NormalizingBehavior
'auto' will turn on automatic normalizing (default), 'manual' will turn this feature off and you need to normalize yourself.
Declaration
public NormalizingBehavior NormalizingBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| NormalizingBehavior |
NotConstraintReplacement
The Not-Constraint-Replacement
Declaration
public NotConstraintReplacement? NotConstraintReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<NotConstraintReplacement> |
OrConstraintReplacement
The Or-Constraint-Replacement
Declaration
public OrConstraintReplacement? OrConstraintReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<OrConstraintReplacement> |
RestoreUserModelAfterSolve
If true, the original true.
Declaration
public bool RestoreUserModelAfterSolve { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Sos1HandlingOverride
The SOS Handling for SOS1
Declaration
public SOSHandling? Sos1HandlingOverride { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SOSHandling> |
Sos2HandlingOverride
The SOS Handling for SOS2
Declaration
public SOSHandling? Sos2HandlingOverride { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SOSHandling> |
Sos3HandlingOverride
The SOS Handling for SOS3
Declaration
public SOSHandling? Sos3HandlingOverride { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SOSHandling> |