Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <rays.h>
Public Types | |
using | SparseVector = std::vector<std::pair<int, double>> |
Public Member Functions | |
GlpkRay (GlpkRayType type, SparseVector non_zero_components) | |
Public Attributes | |
GlpkRayType | type |
The type of ray, primal or dual. | |
SparseVector | non_zero_components |
A primal or dual unbound ray for the model in computational form.
See the top comment of operations_research/glpk/glpk_computational_form.h to understand that the computational form is. This structure uses the word "variable" to mean a variable in the joint set of structural and auxiliary variables.
using operations_research::math_opt::GlpkRay::SparseVector = std::vector<std::pair<int, double>> |
operations_research::math_opt::GlpkRay::GlpkRay | ( | GlpkRayType | type, |
SparseVector | non_zero_components ) |
SparseVector operations_research::math_opt::GlpkRay::non_zero_components |
The non zero components of the vector, in no particular order.
The first member of the pair is the index of the variable (or of its corresponding reduced cost) and the second is the component's value.
A given index can only appear once.
The indices in GLPK are one-based. Here the indices are defined by:
GlpkRayType operations_research::math_opt::GlpkRay::type |