HybridLocalSearchSolver Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

A solver that uses simple, general-purpose local search strategies.

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Solvers.HybridLocalSearchModel
    Microsoft.SolverFoundation.Solvers.HybridLocalSearchSolver

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Class HybridLocalSearchSolver _
    Inherits HybridLocalSearchModel _
    Implements ITermSolver, IRowVariableSolver, ISolver, ITermModel,  _
    IRowVariableModel, IGoalModel, INonlinearSolution, ISolverSolution, ISolverProperties,  _
    IReportProvider
public class HybridLocalSearchSolver : HybridLocalSearchModel, 
    ITermSolver, IRowVariableSolver, ISolver, ITermModel, IRowVariableModel, 
    IGoalModel, INonlinearSolution, ISolverSolution, ISolverProperties, IReportProvider
public ref class HybridLocalSearchSolver : public HybridLocalSearchModel, 
    ITermSolver, IRowVariableSolver, ISolver, ITermModel, IRowVariableModel, 
    IGoalModel, INonlinearSolution, ISolverSolution, ISolverProperties, IReportProvider
type HybridLocalSearchSolver =  
    class
        inherit HybridLocalSearchModel
        interface ITermSolver
        interface IRowVariableSolver
        interface ISolver
        interface ITermModel
        interface IRowVariableModel
        interface IGoalModel
        interface INonlinearSolution
        interface ISolverSolution
        interface ISolverProperties
        interface IReportProvider
    end
public class HybridLocalSearchSolver extends HybridLocalSearchModel implements ITermSolver, IRowVariableSolver, ISolver, ITermModel, IRowVariableModel, IGoalModel, INonlinearSolution, ISolverSolution, ISolverProperties, IReportProvider

The HybridLocalSearchSolver type exposes the following members.

Constructors

  Name Description
Public method HybridLocalSearchSolver Initializes a new instance of the HybridLocalSearchSolver class.

Top

Properties

  Name Description
Protected property ConstraintsCount Specifies the number of constraints. (Inherited from HybridLocalSearchModel.)
Protected property GoalsCount Specifies the number of goals. (Inherited from HybridLocalSearchModel.)
Public property RandomSeed Sets the random seed that (re)initializes the random number sequence generation. (Inherited from HybridLocalSearchModel.)
Public property Result Returns a Non-linear Result.
Public property Step Specifies the current step number of the search when it is running. (Inherited from HybridLocalSearchModel.)
Public property Violation Identifies the violation of the current state. (Inherited from HybridLocalSearchModel.)

Top

Methods

  Name Description
Public method AddConstant Adds a constant to the model. Constants are considered rows. (Inherited from HybridLocalSearchModel.)
Public method AddConstraint Specifies that a numerical term is a constraint (Inherited from HybridLocalSearchModel.)
Public method AddFunction (Inherited from HybridLocalSearchModel.)
Public method AddGoal Specifies that a numerical term is a goal to minimize. Priorities are determined by the order in which the goals are added (first goals have higher priorities) (Inherited from HybridLocalSearchModel.)
Public method AddOperation(TermModelOperation, Int32%, Int32) Adds an operation row to the model. (Inherited from HybridLocalSearchModel.)
Public method AddOperation(TermModelOperation, Int32%, Int32()) Adds an operation row to the model. (Inherited from HybridLocalSearchModel.)
Public method AddOperation(TermModelOperation, Int32%, Int32, Int32) Adds an operation row to the model. (Inherited from HybridLocalSearchModel.)
Public method AddOperation(TermModelOperation, Int32%, Int32, Int32, Int32) Adds an operation row to the model. (Inherited from HybridLocalSearchModel.)
Public method AddVariable(Int32%, IEnumerable<Rational>) Adds a variable to the model, with a fixed set of possible values. (Inherited from HybridLocalSearchModel.)
Public method AddVariable(Object, Int32%, IEnumerable<Rational>) Adds a variable to the model, with a fixed set of possible values. (Inherited from HybridLocalSearchModel.)
Public method AddVariable(Int32%, Rational, Rational, Boolean) Adds a variable to the model, with bounds and integrality given at creation time. (Inherited from HybridLocalSearchModel.)
Public method AddVariable(Object, Int32%, Rational, Rational, Boolean) Adds a variable to the model, with bounds and integrality given at creation time. (Inherited from HybridLocalSearchModel.)
Public method CreateBinaryFunction (Inherited from HybridLocalSearchModel.)
Public method CreateNaryFunction (Inherited from HybridLocalSearchModel.)
Public method CreateUnaryFunction (Inherited from HybridLocalSearchModel.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetOperand Gets an operand associated with a vid. (Inherited from HybridLocalSearchModel.)
Public method GetOperandCount Gets the number of operands associated with a vid. (Inherited from HybridLocalSearchModel.)
Public method GetOperands Gets the operands associated with a vid. (Inherited from HybridLocalSearchModel.)
Public method GetOperation Gets the operation associated with a vid. (Inherited from HybridLocalSearchModel.)
Public method GetReport Generates a report
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsConstant Tests if a vid is a constant (not a variable or operation). (Inherited from HybridLocalSearchModel.)
Public method IsOperation Tests if a vid is an operation (not a variable or constant). (Inherited from HybridLocalSearchModel.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveConstraint Removes a Boolean term from the set of constraints (Inherited from HybridLocalSearchModel.)
Public method RequestTermination Requests the end of the search algorithm (Inherited from HybridLocalSearchModel.)
Public method Solve Solves the model using the given parameter instance.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field goalList Represents the goals, or objectives to minimize or maximize (Inherited from HybridLocalSearchModel.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IGoalModel.AddGoal Adds a goal to the collection. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IGoalModel.ClearGoals Clears all the goals from a model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IGoalModel.GetGoalFromIndex Returns a goal entry if the row index is associated with a goal row. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IGoalModel.GoalCount Gets a count of the number of goals for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IGoalModel.Goals Gets the goals for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IGoalModel.IsGoal(Int32) Returns a value that specifies whether a row index is a goal row. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IGoalModel.IsGoal(Int32, IGoal%) Returns a value that specifies whether a row index is a goal row, and returns the associated goal. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IGoalModel.RemoveGoal Removes the specified goal. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method INonlinearSolution.GetSolutionValue Returns the objective value of a goal.
Explicit interface implemetationPrivate method INonlinearSolution.GetSolvedGoal Returns information about a solved goal.
Explicit interface implemetationPrivate method INonlinearSolution.GetValue Returns the value of the specified variable.
Explicit interface implemetationPrivate property INonlinearSolution.SolvedGoalCount Gets the number of goals that are being solved.
Explicit interface implemetationPrivate method IRowVariableModel.AddRow Adds a row to a model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.AddVariable Adds a user variable to a model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetBounds Returns the bounds for a variable. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetIgnoreBounds Returns a value that indicates whether the bounds of a variable are ignored. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetIndexFromKey (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetIntegrality Gets the integrality of the goal identified by the specified index. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetKeyFromIndex (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.GetValue Returns the value that is associated with a variable index. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.Indices Gets the indices for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.IntegerIndexCount Gets the index count as an integer for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.IsRow Returns a value that indicates whether a variable index is a row. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.KeyComparer Gets the value of the key comparer for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.KeyCount Gets the count of the number of keys for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.Keys Gets the keys for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.RowCount Gets the row count for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.RowIndices Gets the row indices for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.RowKeys Gets the row keys for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetBounds Sets the bounds for a variable. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetIgnoreBounds Specifies whether the bounds of a variable index should be respected or ignored during a solve process. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetIntegrality Specifies that a variable is an integer variable. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetLowerBound Sets the lower bound of a variable. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetUpperBound Sets the upper bound of a variable. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.SetValue Sets the value for the specified variable index. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method IRowVariableModel.TryGetIndexFromKey Attempts to return the variable index associated with a key. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.VariableCount Gets the variable count for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.VariableIndices Gets the variable indices for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate property IRowVariableModel.VariableKeys Gets the variable keys for the search model. (Inherited from HybridLocalSearchModel.)
Explicit interface implemetationPrivate method ISolver.Shutdown Shuts down a solver instance.
Explicit interface implemetationPrivate method ISolverProperties.GetProperty Returns the value of a property.
Explicit interface implemetationPrivate method ISolverProperties.SetProperty Sets the value of a property.
Explicit interface implemetationPrivate property ITermSolver.SupportedOperations Gets the operations that are supported by the solver.

Top

Remarks

The solver can be used for discrete and continuous, linear and non-linear, satisfaction and/or optimization models. This solver is incomplete: it does not guarantee global optimality.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SolverFoundation.Solvers Namespace