Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::RoutingCumulExpressions Struct Reference

#include <routing_cuts.h>

Public Member Functions

const AffineExpressionGetNodeExpression (int node, int dimension) const

Public Attributes

int num_dimensions = 0
std::vector< AffineExpressionflat_node_dim_expressions

Detailed Description

Helper to recover the mapping between nodes and "cumul" expressions in simple cases of route constraints (at most one expression per node and "dimension" – such as time or load, and at most one relation per arc and dimension).

This returns an empty vector and num_dimensions == 0 if nothing is detected. Otherwise it returns one expression per node and dimensions.

Definition at line 53 of file routing_cuts.h.

Member Function Documentation

◆ GetNodeExpression()

const AffineExpression & operations_research::sat::RoutingCumulExpressions::GetNodeExpression ( int node,
int dimension ) const
inline

Definition at line 54 of file routing_cuts.h.

Member Data Documentation

◆ flat_node_dim_expressions

std::vector<AffineExpression> operations_research::sat::RoutingCumulExpressions::flat_node_dim_expressions

Definition at line 59 of file routing_cuts.h.

◆ num_dimensions

int operations_research::sat::RoutingCumulExpressions::num_dimensions = 0

Definition at line 58 of file routing_cuts.h.


The documentation for this struct was generated from the following file: