SolutionMapping Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Defines the mapping between a model and a ConstraintSystem object.
Inheritance Hierarchy
System.Object
Microsoft.SolverFoundation.Services.SolutionMapping
Microsoft.SolverFoundation.Services.CspSolutionMapping
Microsoft.SolverFoundation.Services.PluginSolutionMapping
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public MustInherit Class SolutionMapping
public abstract class SolutionMapping
public ref class SolutionMapping abstract
[<AbstractClass>]
type SolutionMapping = class end
public abstract class SolutionMapping
The SolutionMapping type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SolutionMapping | Initializes a new instance of the SolutionMapping class. |
Top
Properties
Name | Description | |
---|---|---|
EmptyArray | Gets a one-dimensional, empty array. | |
Model | Gets the Solver Foundation Services model that is solved. |
Top
Methods
Name | Description | |
---|---|---|
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.) | |
GetComponents | Returns a collection of components that are related to a constraint. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIndexes(Constraint) | Returns a collection of indexes that are related to a constraint. | |
GetIndexes(Decision) | Returns a collection of indexes that are related to a decision. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetConstraint | Returns a value that indicates whether a row identifier is mapped to a constraint. | |
TryGetDecision | Returns a value that indicates whether a row identifier is mapped to a decision. | |
TryGetGoal | Returns a value that indicates whether a row identifier is mapped to a goal. | |
TryGetValue(Goal, Rational%) | Returns the value of the specified goal. | |
TryGetValue(Decision, array<Object[], Rational%) | Returns the value of the specified decision. | |
TryGetVid(Goal, Int32%) | Returns a row index associated with a specified goal. | |
TryGetVid(Decision, array<Object[], Int32%) | Returns a row index associated with a specified decision. | |
TryGetVid(Constraint, array<Object[], Int32, Int32%) | Returns a row index associated with a specified constraint. |
Top
Remarks
The solution mapping maps between decision values, goals, and constraints, and solver terms and variable indexes.
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.