RecourseDecision Class

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

Represents a group of decisions that are made in response to the output of a random parameter.

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Services.Term
    Microsoft.SolverFoundation.Services.RecourseDecision

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

Syntax

'Declaration
Public NotInheritable Class RecourseDecision _
    Inherits Term
public sealed class RecourseDecision : Term
public ref class RecourseDecision sealed : public Term
[<Sealed>]
type RecourseDecision =  
    class
        inherit Term
    end
public final class RecourseDecision extends Term

The RecourseDecision type exposes the following members.

Constructors

  Name Description
Public method RecourseDecision(Domain, String) Initializes a new instance of the RecourseDecision class. Creates a non-indexed recourse decision.
Public method RecourseDecision(Domain, String, array<Set[]) Initializes a new instance of the RecourseDecision class. Creates an indexed recourse decision.

Top

Properties

  Name Description
Public property Description Gets or sets a comment for a recourse decision object.
Public property IndexSets Gets the index sets for a recourse decision object.
Public property Item Returns the decision specified by the indexes.
Public property Name Gets the name of a recourse decision.

Top

Methods

  Name Description
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 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetIndexSet Resets the specified index set.
Public method ToString() Converts a recourse decision object to its equivalent string representation. (Overrides Object.ToString().)
Public method ToString(String, IFormatProvider) Converts a term to its equivalent string representation. (Inherited from Term.)

Top

Remarks

Recourse decisions are sometimes called "second-stage decisions" because such decisions can be made only after the randomness is resolved. Each RecourseDecision object has an underlying decision for each second-stage problem. For example, you can model the weather by using a ScenariosParameter object. If the weather is dry, farmers might not be able to produce enough of a certain crop, and a company might need to purchase that crop from someone else. In this case, the purchase amount is a recourse decision.

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.Services Namespace