Click or drag to resize

BoundedVariableProblem Class

Abstract class for representing a problem with bounded variables.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public abstract class BoundedVariableProblem

The BoundedVariableProblem type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyNumVariables
Gets the number of variables in the problem.
Public propertyVariableBounds
Gets and sets variable bounds for the problem.
Top
Methods
  NameDescription
Public methodAddBounds(Int32, Double, Double)
Adds upper and lower bound constraints to a variable.
Public methodAddBounds(Int32, Double, Double, Double)
Adds upper and lower bound constraints to a variable.
Public methodAddLowerBound(Int32, Double)
Adds an lower bound constraint on the variable at the given index.
Public methodAddLowerBound(Int32, Double, Double)
Adds an lower bound constraint on the variable at the given index.
Public methodAddUpperBound(Int32, Double)
Adds an upper bound constraint on the variable at the given index.
Public methodAddUpperBound(Int32, Double, Double)
Adds an upper bound constraint on the variable at the given index.
Public methodStatic memberBoundsToConstraints
Constructs a list of linear constraints representing the bounds in the given VariableBounds instance.
Protected methodCheckVariableIndex
Checks that the given variable index is valid.
Public methodPointIsFeasible(DoubleVector)
Function for determining the feasibility of a give point. A point x is feasible if it satisfies all the constraints of the problem.
Public methodPointIsFeasible(DoubleVector, Double)
Function for determining the feasibility of a give point. A point x is feasible if it satisfies all the constraints of the problem within a specified tolerance.
Top
Fields
  NameDescription
Protected fieldvariableBounds_
Map containing variable bounds. Key is the variable ID, the value is the bounds.
Top
See Also