Bpp/Linear_system Structure | C++ |
|  |
This module defines the structure of a linear program. What we reference here as a linear system is in fact a linear program (it has a linear objective function). This section allows you to access the C++ source files of the module. This module is part of Bpp/Linear_system . The files listed below are included in the interface part of the module. So any module dependent of this module is also dependent of the files listed here. <algorithm>
<bpp/standard.hpp>
The files listed below are needed by the implementation part of the module. But a module dependent of this module is not necessary dependent of the files listed here. The namespaces listed below are integrated in this module. That means any element declared in one of those namespaces can now be directly used by or from this module. Here are listed the types defined in the module. To use one of them, you have to specify the namespace of the module. type tyCardinal tyVariableKey Key identifying a variable in a linear system.
enumeration { equality, inferiority, superiority } tyConstraintKind Kind of constraint of a linear system.
enumeration { minimum, maximum } tyOptimum Kind of objective of a linear system.
enumeration { realVariable, integralVariable } tyVariableKind Kind of variable of a linear system.
type std_map(tyVariableKey,tyReal) clCoefficientX List of coefficients, each associated with a variable of a linear system.
Here are listed the errors that are supported or generated by the module. To use one of them, you do not have to specify the namespace of the module. erIncompatibleConstraints The two constraints are incompatible (not the same number of coefficients).
erIncompatibleObjectives The two objectives are incompatible (not the same number of coefficients).
erInconsistentConstraintStructure The structure of the constraint is inconsistent.
erInvalidConstraintKindString The contraint kind specified is not valid.
erInvalidConstraintNumber The constraint number is not valid.
erInvalidOptimumString The string does not represent an objective kind.
erInvalidVariableKindString The string does not represent a variable kind.
erInvalidVariableKey The variable key is not valid.
erVariableKeyAlreadyExists The variable key already exists.
Here are listed the functions provided by the module. To use one of them, you have to specify the namespace of the module. Here are listed the classes provided by the module. To use one of them, you have to specify the namespace of the module. template <class prContent> class clConstraint
Represents a constraint of a linear system. The parameter of the template is the type of data the variables of the linear system carry. type clConstraint<prContent> cpConstraint This class.
type clLinearSystem<prContent> cpLinearSystem Type of linear system the constraint belongs to.
type clObjective<prContent> cpObjective Type of objective the constraint is associated with.
type clVariable<prContent> cpVariable Type of variable the constraint is associated with.
type std_vector(cpConstraint *) cpConstraintS List of constraints.
type std_map(tyVariableKey,cpVariable *) cpVariableX List of variables.
tyMark mark() Mark used by some algorithms. Reading and writing access.
clCoefficientX coefficients() Coefficients of the constraint. Reading access only.
tyReal boundary() Boundary of the constraint. Reading and writing access.
tyConstraintKind kind() Kind of the constraint. Reading and writing access.
template <class prContent> class clLinearSystem
Represents a linear system. The parameter of the template is the type of data the variables carry. type clConstraint<prContent> cpConstraint Type of constraints the linear system contains.
type clLinearSystem<prContent> cpLinearSystem This class.
type clObjective<prContent> cpObjective Type of objective the linear system contains.
type clVariable<prContent> cpVariable Type of variable the linear system contains.
type std_vector(cpConstraint *) cpConstraintS List of constraints.
type std_map(tyVariableKey,cpVariable *) cpVariableX List of variables.
tyBoolean solved() Indicates if the system is solved. Reading and writing access.
tyMark mark() Mark used by some algorithms. Reading and writing access.
cpVariableX variables() Variables of the system. Reading access only.
cpConstraintS constraints() Constraints of the system. Reading access only.
template <class prContent> class clObjective
Represents the objective of a linear system. The parameter of the template is the type of data the variables of the linear system carry. type clConstraint<prContent> cpConstraint Type of constraints the objective is associated with.
type clLinearSystem<prContent> cpLinearSystem Type of linear system the objective belongs to.
type clObjective<prContent> cpObjective This class.
type clVariable<prContent> cpVariable Type of variable the objective is associated with.
type std_vector(cpConstraint *) cpConstraintS List of constraints.
type std_map(tyVariableKey,cpVariable *) cpVariableX List of variables.
template <class prContent> class clVariable
Represents a variable of a linear system. The parameter of the template is the type of data the variable carries. type clConstraint<prContent> cpConstraint Type of constraints the variable is associated with.
type clLinearSystem<prContent> cpLinearSystem Type of linear system the variable belongs to.
type clObjective<prContent> cpObjective Type of objective the variable is associated with.
type clVariable<prContent> cpVariable This class.
type std_vector(cpConstraint *) cpConstraintS List of constraints.
type std_map(tyVariableKey,cpVariable *) cpVariableX List of variables.
tyVariableKey key() Key identifying the variable in a linear system. Reading access only.
tyMark mark() Mark used by some algorithms. Reading and writing access.
tyVariableKind kind() Kind of the variable. Reading and writing access.
prContent content() Content of the variable. Reading and writing access.
tyReal value() Value of the variable. Reading and writing access.
| | Copyright (c) 1999-2016 - Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net | Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. See this license for more details (http://www.gnu.org). |
|
| |