Show / Hide Table of Contents

    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
    IStatus<StatusInfo>.Status
    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.

    Extension Methods

    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)
    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice