Click or drag to resize

LinearConstrainedProblem Class

Abstract class for representing an optimization problem with linear constraints.
Inheritance Hierarchy

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

The LinearConstrainedProblem type exposes the following members.

Constructors
 NameDescription
Public methodLinearConstrainedProblem Constructs a LinearConstrainedProblem with no constraints.
Public methodLinearConstrainedProblem(LinearConstrainedProblem) Copy constructor.
Top
Properties
 NameDescription
Public propertyConstraints Gets and sets the linear constraints for the problem.
Public propertyNumVariables Gets the number of variables in the problem.
(Inherited from BoundedVariableProblem)
Public propertyVariableBounds Gets and sets variable bounds for the problem.
(Inherited from BoundedVariableProblem)
Top
Methods
 NameDescription
Public methodAddBounds(Int32, Double, Double) Adds upper and lower bound constraints to a variable.
(Inherited from BoundedVariableProblem)
Public methodAddBounds(Int32, Double, Double, Double) Adds upper and lower bound constraints to a variable.
(Inherited from BoundedVariableProblem)
Public methodAddConstraint(LinearConstraint) Adds the given constraint to the problem.
Public methodAddConstraint(DoubleVector, Double, Double) Adds a linear inequality constraint of the form lowerBound <= coefficients'x < upperBound
Public methodAddConstraint(ILinearConstraintCoefficients, Double, Double) Adds a linear inequality constraint of the form lowerBound <= coefficients'x < upperBound
Public methodAddConstraint(DoubleVector, Double, Double, Double) Adds a linear inequality constraint of the form lowerBound <= coefficients'x < upperBound
Public methodAddConstraint(ILinearConstraintCoefficients, Double, Double, Double) Adds a linear inequality constraint of the form lowerBound <= coefficients'x < upperBound
Public methodAddEqualityConstraint(DoubleVector, Double) Adds an equality constraint of the form coefficients'x = rightHandSide
Public methodAddEqualityConstraint(ILinearConstraintCoefficients, Double) Adds an equality constraint of the form coefficients'x = rightHandSide
Public methodAddLowerBound(Int32, Double) Adds an lower bound constraint on the variable at the given index.
(Inherited from BoundedVariableProblem)
Public methodAddLowerBound(Int32, Double, Double) Adds an lower bound constraint on the variable at the given index.
(Inherited from BoundedVariableProblem)
Public methodAddLowerBoundConstraint(DoubleVector, Double) Adds a linear inequality constraint of the form coefficients'x >= lowerBound
Public methodAddLowerBoundConstraint(ILinearConstraintCoefficients, Double) Adds a linear inequality constraint of the form coefficients'x >= lowerBound
Public methodAddLowerBoundConstraint(DoubleVector, Double, Double) Adds a linear inequality constraint of the form coefficients'x >= lowerBound
Public methodAddLowerBoundConstraint(ILinearConstraintCoefficients, Double, Double) Adds a linear inequality constraint of the form coefficients'x >= lowerBound
Public methodAddUpperBound(Int32, Double) Adds an upper bound constraint on the variable at the given index.
(Inherited from BoundedVariableProblem)
Public methodAddUpperBound(Int32, Double, Double) Adds an upper bound constraint on the variable at the given index.
(Inherited from BoundedVariableProblem)
Public methodAddUpperBoundConstraint(DoubleVector, Double) Adds a linear inequality constraint of the form coefficients'x <= upperBound
Public methodAddUpperBoundConstraint(ILinearConstraintCoefficients, Double) Adds a linear inequality constraint of the form coefficients'x <= upperBound
Public methodAddUpperBoundConstraint(DoubleVector, Double, Double) Adds a linear inequality constraint of the form coefficients'x <= upperBound
Public methodAddUpperBoundConstraint(ILinearConstraintCoefficients, Double, Double) Adds a linear inequality constraint of the form coefficients'x <= upperBound
Protected methodCheckVariableIndex Checks that the given variable index is valid.
(Inherited from BoundedVariableProblem)
Public methodEvaluateConstraints Evaluates each of the constraints at the specified point and returns the results.
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.
(Overrides BoundedVariableProblemPointIsFeasible(DoubleVector))
Public methodPointIsFeasible(DoubleVector, Double) Function for determining the feasibility of a give point.
(Overrides BoundedVariableProblemPointIsFeasible(DoubleVector, Double))
Top
Fields
 NameDescription
Protected fieldconstraints_ Problem constraints.
Protected fieldvariableBounds_ Map containing variable bounds. Key is the variable ID, the value is the bounds.
(Inherited from BoundedVariableProblem)
Top
See Also