Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::VariableStorage::Diff Struct Reference

#include <variable_storage.h>

Public Member Functions

 Diff (const VariableStorage &storage)
 

Public Attributes

VariableId checkpoint = VariableId(0)
 
absl::flat_hash_set< VariableId > deleted
 
absl::flat_hash_set< VariableId > lower_bounds
 
absl::flat_hash_set< VariableId > upper_bounds
 
absl::flat_hash_set< VariableId > integer
 

Detailed Description

Tracks a "checkpoint" and the changes to variables that are before the checkpoint. Advancing the checkpoint throws away tracked changes.

An instance of this class is owned by each update tracker of ModelStorage.

Definition at line 45 of file variable_storage.h.

Constructor & Destructor Documentation

◆ Diff()

operations_research::math_opt::VariableStorage::Diff::Diff ( const VariableStorage & storage)
inlineexplicit

Definition at line 46 of file variable_storage.h.

Member Data Documentation

◆ checkpoint

VariableId operations_research::math_opt::VariableStorage::Diff::checkpoint = VariableId(0)

Definition at line 49 of file variable_storage.h.

◆ deleted

absl::flat_hash_set<VariableId> operations_research::math_opt::VariableStorage::Diff::deleted

Definition at line 50 of file variable_storage.h.

◆ integer

absl::flat_hash_set<VariableId> operations_research::math_opt::VariableStorage::Diff::integer

Definition at line 53 of file variable_storage.h.

◆ lower_bounds

absl::flat_hash_set<VariableId> operations_research::math_opt::VariableStorage::Diff::lower_bounds

Definition at line 51 of file variable_storage.h.

◆ upper_bounds

absl::flat_hash_set<VariableId> operations_research::math_opt::VariableStorage::Diff::upper_bounds

Definition at line 52 of file variable_storage.h.


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