Class BestBoundExtractor
Component for managing the best bound extraction during a gurobi optimization.
Inheritance
System.Object
BestBoundExtractor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OPTANO.Modeling.Optimization.Solver.Gurobi
Assembly: Optimization.Solver.Gurobi.dll
Syntax
public class BestBoundExtractor
Constructors
BestBoundExtractor(Double[])
Initializes a new instance of the BestBoundExtractor class.
Declaration
public BestBoundExtractor(double[] objectiveNormalizationFactors)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | objectiveNormalizationFactors | The normalization factor for every objective stage to handle. |
Properties
BestBounds
Gets the current best bound dictionary.
Declaration
public IReadOnlyList<double> BestBounds { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Double> |
Methods
ExtractBoundFromLogMessage(String)
Tries to parse the best bound from a given logMessage
.
Declaration
public void ExtractBoundFromLogMessage(string logMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | logMessage | The log message from Gurobi. |
GetBoundsByPriorityLevel(IReadOnlyList<Int32>)
Declaration
public IDictionary<int, double> GetBoundsByPriorityLevel(IReadOnlyList<int> orderedPriorityLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyList<System.Int32> | orderedPriorityLevels |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Int32, System.Double> |
UpdateCurrentBound(Double)
Sets the given newBound
for the OPTANO.Modeling.Optimization.Solver.Gurobi.BestBoundExtractor._currentBoundIndex.
Declaration
public void UpdateCurrentBound(double newBound)
Parameters
Type | Name | Description |
---|---|---|
System.Double | newBound |
UpdateCurrentIndex(Int32)
Set the current index position.
Declaration
public void UpdateCurrentIndex(int finishedObjectiveCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | finishedObjectiveCount | The number of completed objectives. |