HybridLocalSearchModel Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The model for the HybridLocalSearchSolver.
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 HybridLocalSearchModel _
Implements ITermModel, IRowVariableModel, IGoalModel
public class HybridLocalSearchModel : ITermModel,
IRowVariableModel, IGoalModel
public ref class HybridLocalSearchModel : ITermModel,
IRowVariableModel, IGoalModel
type HybridLocalSearchModel =
class
interface ITermModel
interface IRowVariableModel
interface IGoalModel
end
public class HybridLocalSearchModel implements ITermModel, IRowVariableModel, IGoalModel
The HybridLocalSearchModel type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HybridLocalSearchModel | A solver that uses simple, general-purpose local search strategies. Can be used for discrete and continuous, linear and non-linear, satisfaction and/or optimization models. This solver is incomplete: it does not guarantee optimality. |
Top
Properties
Name | Description | |
---|---|---|
ConstraintsCount | Specifies the number of constraints. | |
GoalsCount | Specifies the number of goals. | |
RandomSeed | Sets the random seed that (re)initializes the random number sequence generation. | |
Step | Specifies the current step number of the search when it is running. | |
Violation | Identifies the violation of the current state. |
Top
Methods
Name | Description | |
---|---|---|
AddConstant | Adds a constant to the model. Constants are considered rows. | |
AddConstraint | Specifies that a numerical term is a constraint | |
AddFunction | ||
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) | |
AddOperation(TermModelOperation, Int32%, Int32) | Adds an operation row to the model. | |
AddOperation(TermModelOperation, Int32%, Int32()) | Adds an operation row to the model. | |
AddOperation(TermModelOperation, Int32%, Int32, Int32) | Adds an operation row to the model. | |
AddOperation(TermModelOperation, Int32%, Int32, Int32, Int32) | Adds an operation row to the model. | |
AddVariable(Int32%, IEnumerable<Rational>) | Adds a variable to the model, with a fixed set of possible values. | |
AddVariable(Object, Int32%, IEnumerable<Rational>) | Adds a variable to the model, with a fixed set of possible values. | |
AddVariable(Int32%, Rational, Rational, Boolean) | Adds a variable to the model, with bounds and integrality given at creation time. | |
AddVariable(Object, Int32%, Rational, Rational, Boolean) | Adds a variable to the model, with bounds and integrality given at creation time. | |
CreateBinaryFunction | ||
CreateNaryFunction | ||
CreateUnaryFunction | ||
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetOperand | Gets an operand associated with a vid. | |
GetOperandCount | Gets the number of operands associated with a vid. | |
GetOperands | Gets the operands associated with a vid. | |
GetOperation | Gets the operation associated with a vid. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsConstant | Tests if a vid is a constant (not a variable or operation). | |
IsOperation | Tests if a vid is an operation (not a variable or constant). | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveConstraint | Removes a Boolean term from the set of constraints | |
RequestTermination | Requests the end of the search algorithm | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
goalList | Represents the goals, or objectives to minimize or maximize |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IGoalModel.AddGoal | Adds a goal to the collection. | |
IGoalModel.ClearGoals | Clears all the goals from a model. | |
IGoalModel.GetGoalFromIndex | Returns a goal entry if the row index is associated with a goal row. | |
IGoalModel.GoalCount | Gets a count of the number of goals for the search model. | |
IGoalModel.Goals | Gets the goals for the search model. | |
IGoalModel.IsGoal(Int32) | Returns a value that specifies whether a row index is a goal row. | |
IGoalModel.IsGoal(Int32, IGoal%) | Returns a value that specifies whether a row index is a goal row, and returns the associated goal. | |
IGoalModel.RemoveGoal | Removes the specified goal. | |
IRowVariableModel.AddRow | Adds a row to a model. | |
IRowVariableModel.AddVariable | Adds a user variable to a model. | |
IRowVariableModel.GetBounds | Returns the bounds for a variable. | |
IRowVariableModel.GetIgnoreBounds | Returns a value that indicates whether the bounds of a variable are ignored. | |
IRowVariableModel.GetIndexFromKey | ||
IRowVariableModel.GetIntegrality | Gets the integrality of the goal identified by the specified index. | |
IRowVariableModel.GetKeyFromIndex | ||
IRowVariableModel.GetValue | Returns the value that is associated with a variable index. | |
IRowVariableModel.Indices | Gets the indices for the search model. | |
IRowVariableModel.IntegerIndexCount | Gets the index count as an integer for the search model. | |
IRowVariableModel.IsRow | Returns a value that indicates whether a variable index is a row. | |
IRowVariableModel.KeyComparer | Gets the value of the key comparer for the search model. | |
IRowVariableModel.KeyCount | Gets the count of the number of keys for the search model. | |
IRowVariableModel.Keys | Gets the keys for the search model. | |
IRowVariableModel.RowCount | Gets the row count for the search model. | |
IRowVariableModel.RowIndices | Gets the row indices for the search model. | |
IRowVariableModel.RowKeys | Gets the row keys for the search model. | |
IRowVariableModel.SetBounds | Sets the bounds for a variable. | |
IRowVariableModel.SetIgnoreBounds | Specifies whether the bounds of a variable index should be respected or ignored during a solve process. | |
IRowVariableModel.SetIntegrality | Specifies that a variable is an integer variable. | |
IRowVariableModel.SetLowerBound | Sets the lower bound of a variable. | |
IRowVariableModel.SetUpperBound | Sets the upper bound of a variable. | |
IRowVariableModel.SetValue | Sets the value for the specified variable index. | |
IRowVariableModel.TryGetIndexFromKey | Attempts to return the variable index associated with a key. | |
IRowVariableModel.VariableCount | Gets the variable count for the search model. | |
IRowVariableModel.VariableIndices | Gets the variable indices for the search model. | |
IRowVariableModel.VariableKeys | Gets the variable keys for the search model. |
Top
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.