Interface ICanHandleUserSolution
The interface can be used to insert user solutions (by given variable values) that were found by an external (e.g. heuristic) algorithm into a running solution process.
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Solver.Interfaces
Assembly: Optimization.dll
Syntax
public interface ICanHandleUserSolution : IStatus<StatusInfo>
Properties
PendingUserSolutionCount
Gets the number of unprocessed user solutions in the queue.
Declaration
int PendingUserSolutionCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ClearPendingUserSolutions()
Removes all user solutions from the queue of solutions that are passed to the solver.
Declaration
void ClearPendingUserSolutions()
EnqueueUserSolution(Dictionary<String, Double>)
Adds a solution to the queue of pending user solutions.
The given variableValues
will be used once all previously enqueued solutions are processed.
Declaration
void EnqueueUserSolution(Dictionary<string, double> variableValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Double> | variableValues | The solution to enqueue. |
ReplaceAllPendingSolutions(Dictionary<String, Double>)
Clears all pending user solutions from the queue
and then calls EnqueueUserSolution(Dictionary<String, Double>)(variableValues
).
Declaration
void ReplaceAllPendingSolutions(Dictionary<string, double> variableValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Double> | variableValues | The variable Values of a user solution that should replace all pending user solutions. |