Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::ModelStorageV2 Class Reference

Detailed Description

Definition at line 81 of file model_storage_v2.h.

#include <model_storage_v2.h>

Public Member Functions

 ModelStorageV2 (absl::string_view model_name="", absl::string_view primary_objective_name="")
 ModelStorageV2 (const ModelStorageV2 &)=delete
ModelStorageV2operator= (const ModelStorageV2 &)=delete
absl_nonnull std::unique_ptr< ModelStorageV2Clone (std::optional< absl::string_view > new_name=std::nullopt) const
const std::string & name () const
VariableId AddVariable (absl::string_view name="")
VariableId AddVariable (double lower_bound, double upper_bound, bool is_integer, absl::string_view name="")
double variable_lower_bound (VariableId id) const
double variable_upper_bound (VariableId id) const
bool is_variable_integer (VariableId id) const
absl::string_view variable_name (VariableId id) const
void set_variable_lower_bound (VariableId id, double lower_bound)
void set_variable_upper_bound (VariableId id, double upper_bound)
void set_variable_is_integer (VariableId id, bool is_integer)
void set_variable_as_integer (VariableId id)
void set_variable_as_continuous (VariableId id)
void DeleteVariable (VariableId id)
int64_t num_variables () const
VariableId next_variable_id () const
void ensure_next_variable_id_at_least (VariableId id)
bool has_variable (VariableId id) const
std::vector< VariableIdvariables () const
std::vector< VariableIdVariables () const
std::vector< VariableIdSortedVariables () const
LinearConstraintId AddLinearConstraint (absl::string_view name="")
LinearConstraintId AddLinearConstraint (double lower_bound, double upper_bound, absl::string_view name="")
double linear_constraint_lower_bound (LinearConstraintId id) const
double linear_constraint_upper_bound (LinearConstraintId id) const
absl::string_view linear_constraint_name (LinearConstraintId id) const
void set_linear_constraint_lower_bound (LinearConstraintId id, double lower_bound)
void set_linear_constraint_upper_bound (LinearConstraintId id, double upper_bound)
void DeleteLinearConstraint (LinearConstraintId id)
int64_t num_linear_constraints () const
LinearConstraintId next_linear_constraint_id () const
void ensure_next_linear_constraint_id_at_least (LinearConstraintId id)
bool has_linear_constraint (LinearConstraintId id) const
std::vector< LinearConstraintIdLinearConstraints () const
std::vector< LinearConstraintIdSortedLinearConstraints () const
double linear_constraint_coefficient (LinearConstraintId constraint, VariableId variable) const
bool is_linear_constraint_coefficient_nonzero (LinearConstraintId constraint, VariableId variable) const
void set_linear_constraint_coefficient (LinearConstraintId constraint, VariableId variable, double value)
std::vector< std::tuple< LinearConstraintId, VariableId, double > > linear_constraint_matrix () const
std::vector< VariableIdvariables_in_linear_constraint (LinearConstraintId constraint) const
std::vector< LinearConstraintIdlinear_constraints_with_variable (VariableId variable) const
bool is_maximize (ObjectiveId id) const
int64_t objective_priority (ObjectiveId id) const
double objective_offset (ObjectiveId id) const
double linear_objective_coefficient (ObjectiveId id, VariableId variable) const
double quadratic_objective_coefficient (ObjectiveId id, VariableId first_variable, VariableId second_variable) const
bool is_linear_objective_coefficient_nonzero (ObjectiveId id, VariableId variable) const
bool is_quadratic_objective_coefficient_nonzero (ObjectiveId id, VariableId first_variable, VariableId second_variable) const
absl::string_view objective_name (ObjectiveId id) const
void set_is_maximize (ObjectiveId id, bool is_maximize)
void set_maximize (ObjectiveId id)
void set_minimize (ObjectiveId id)
void set_objective_priority (ObjectiveId id, int64_t value)
void set_objective_offset (ObjectiveId id, double value)
void set_linear_objective_coefficient (ObjectiveId id, VariableId variable, double value)
void set_quadratic_objective_coefficient (ObjectiveId id, VariableId first_variable, VariableId second_variable, double value)
void clear_objective (ObjectiveId id)
const absl::flat_hash_map< VariableId, double > & linear_objective (ObjectiveId id) const
std::vector< VariableIdLinearObjectiveNonzeros (ObjectiveId id) const
int64_t num_linear_objective_terms (ObjectiveId id) const
int64_t num_quadratic_objective_terms (ObjectiveId id) const
std::vector< std::tuple< VariableId, VariableId, double > > quadratic_objective_terms (ObjectiveId id) const
AuxiliaryObjectiveId AddAuxiliaryObjective (int64_t priority, absl::string_view name="")
void DeleteAuxiliaryObjective (AuxiliaryObjectiveId id)
int num_auxiliary_objectives () const
AuxiliaryObjectiveId next_auxiliary_objective_id () const
void ensure_next_auxiliary_objective_id_at_least (AuxiliaryObjectiveId id)
bool has_auxiliary_objective (AuxiliaryObjectiveId id) const
std::vector< AuxiliaryObjectiveIdAuxiliaryObjectives () const
std::vector< AuxiliaryObjectiveIdSortedAuxiliaryObjectives () const
template<typename ConstraintData>
ConstraintData::IdType AddAtomicConstraint (ConstraintData data)
template<typename IdType>
void DeleteAtomicConstraint (IdType id)
template<typename IdType>
const AtomicConstraintTraits< IdType >::ConstraintData & constraint_data (IdType id) const
template<typename IdType>
AtomicConstraintTraits< IdType >::ConstraintData GetConstraintData (IdType id) const
template<typename IdType>
int64_t num_constraints () const
template<typename IdType>
IdType next_constraint_id () const
template<typename IdType>
void ensure_next_constraint_id_at_least (IdType id)
template<typename IdType>
bool has_constraint (IdType id) const
template<typename IdType>
std::vector< IdType > Constraints () const
template<typename IdType>
std::vector< IdType > SortedConstraints () const
template<typename IdType>
std::vector< IdType > ConstraintsWithVariable (VariableId variable_id) const
template<typename IdType>
std::vector< VariableIdVariablesInConstraint (IdType id) const
absl::StatusOr< ModelProtoExportModelV2 (bool remove_names=false) const
ModelProto ExportModel (const bool remove_names=false) const
UpdateTrackerId NewUpdateTracker ()
void DeleteUpdateTracker (UpdateTrackerId update_tracker)
absl::StatusOr< std::optional< ModelUpdateProto > > ExportModelUpdateV2 (UpdateTrackerId update_tracker, bool remove_names=false) const
std::optional< ModelUpdateProtoExportModelUpdate (const UpdateTrackerId update_tracker, const bool remove_names=false) const
void AdvanceCheckpoint (UpdateTrackerId update_tracker)
absl::Status ApplyUpdateProto (const ModelUpdateProto &update_proto)

Static Public Member Functions

static absl::StatusOr< absl_nonnull std::unique_ptr< ModelStorageV2 > > FromModelProto (const ModelProto &model_proto)

Constructor & Destructor Documentation

◆ ModelStorageV2() [1/2]

operations_research::math_opt::ModelStorageV2::ModelStorageV2 ( absl::string_view model_name = "",
absl::string_view primary_objective_name = "" )
inlineexplicit

Definition at line 597 of file model_storage_v2.h.

◆ ModelStorageV2() [2/2]

operations_research::math_opt::ModelStorageV2::ModelStorageV2 ( const ModelStorageV2 & )
delete

Member Function Documentation

◆ AddAtomicConstraint()

template<typename ConstraintData>
ConstraintData::IdType operations_research::math_opt::ModelStorageV2::AddAtomicConstraint ( ConstraintData data)
inline

Definition at line 1053 of file model_storage_v2.h.

◆ AddAuxiliaryObjective()

AuxiliaryObjectiveId operations_research::math_opt::ModelStorageV2::AddAuxiliaryObjective ( int64_t priority,
absl::string_view name = "" )
inline

Definition at line 998 of file model_storage_v2.h.

◆ AddLinearConstraint() [1/2]

LinearConstraintId operations_research::math_opt::ModelStorageV2::AddLinearConstraint ( absl::string_view name = "")
inline

Definition at line 687 of file model_storage_v2.h.

◆ AddLinearConstraint() [2/2]

LinearConstraintId operations_research::math_opt::ModelStorageV2::AddLinearConstraint ( double lower_bound,
double upper_bound,
absl::string_view name = "" )
inline

Definition at line 692 of file model_storage_v2.h.

◆ AddVariable() [1/2]

VariableId operations_research::math_opt::ModelStorageV2::AddVariable ( absl::string_view name = "")
inline

Definition at line 608 of file model_storage_v2.h.

◆ AddVariable() [2/2]

VariableId operations_research::math_opt::ModelStorageV2::AddVariable ( double lower_bound,
double upper_bound,
bool is_integer,
absl::string_view name = "" )
inline

Definition at line 613 of file model_storage_v2.h.

◆ AdvanceCheckpoint()

void operations_research::math_opt::ModelStorageV2::AdvanceCheckpoint ( UpdateTrackerId update_tracker)

Definition at line 147 of file model_storage_v2.cc.

◆ ApplyUpdateProto()

absl::Status operations_research::math_opt::ModelStorageV2::ApplyUpdateProto ( const ModelUpdateProto & update_proto)

Definition at line 155 of file model_storage_v2.cc.

◆ AuxiliaryObjectives()

std::vector< AuxiliaryObjectiveId > operations_research::math_opt::ModelStorageV2::AuxiliaryObjectives ( ) const
inline

Definition at line 1029 of file model_storage_v2.h.

◆ clear_objective()

void operations_research::math_opt::ModelStorageV2::clear_objective ( ObjectiveId id)
inline

Definition at line 938 of file model_storage_v2.h.

◆ Clone()

absl_nonnull std::unique_ptr< ModelStorageV2 > operations_research::math_opt::ModelStorageV2::Clone ( std::optional< absl::string_view > new_name = std::nullopt) const

Definition at line 85 of file model_storage_v2.cc.

◆ constraint_data()

template<typename IdType>
const AtomicConstraintTraits< IdType >::ConstraintData & operations_research::math_opt::ModelStorageV2::constraint_data ( IdType id) const
inline

Definition at line 1084 of file model_storage_v2.h.

◆ Constraints()

template<typename IdType>
std::vector< IdType > operations_research::math_opt::ModelStorageV2::Constraints ( ) const

Definition at line 1126 of file model_storage_v2.h.

◆ ConstraintsWithVariable()

template<typename IdType>
std::vector< IdType > operations_research::math_opt::ModelStorageV2::ConstraintsWithVariable ( VariableId variable_id) const
inline

Definition at line 1153 of file model_storage_v2.h.

◆ DeleteAtomicConstraint()

template<typename IdType>
void operations_research::math_opt::ModelStorageV2::DeleteAtomicConstraint ( IdType id)
inline

Definition at line 1063 of file model_storage_v2.h.

◆ DeleteAuxiliaryObjective()

void operations_research::math_opt::ModelStorageV2::DeleteAuxiliaryObjective ( AuxiliaryObjectiveId id)
inline

Definition at line 1005 of file model_storage_v2.h.

◆ DeleteLinearConstraint()

void operations_research::math_opt::ModelStorageV2::DeleteLinearConstraint ( LinearConstraintId id)

Definition at line 73 of file model_storage_v2.cc.

◆ DeleteUpdateTracker()

void operations_research::math_opt::ModelStorageV2::DeleteUpdateTracker ( UpdateTrackerId update_tracker)

Definition at line 129 of file model_storage_v2.cc.

◆ DeleteVariable()

void operations_research::math_opt::ModelStorageV2::DeleteVariable ( VariableId id)

Definition at line 68 of file model_storage_v2.cc.

◆ ensure_next_auxiliary_objective_id_at_least()

void operations_research::math_opt::ModelStorageV2::ensure_next_auxiliary_objective_id_at_least ( AuxiliaryObjectiveId id)
inline

Definition at line 1019 of file model_storage_v2.h.

◆ ensure_next_constraint_id_at_least()

template<typename IdType>
void operations_research::math_opt::ModelStorageV2::ensure_next_constraint_id_at_least ( IdType id)
inline

Definition at line 1108 of file model_storage_v2.h.

◆ ensure_next_linear_constraint_id_at_least()

void operations_research::math_opt::ModelStorageV2::ensure_next_linear_constraint_id_at_least ( LinearConstraintId id)
inline

Definition at line 737 of file model_storage_v2.h.

◆ ensure_next_variable_id_at_least()

void operations_research::math_opt::ModelStorageV2::ensure_next_variable_id_at_least ( VariableId id)
inline

Definition at line 673 of file model_storage_v2.h.

◆ ExportModel()

ModelProto operations_research::math_opt::ModelStorageV2::ExportModel ( const bool remove_names = false) const
inline

Definition at line 500 of file model_storage_v2.h.

◆ ExportModelUpdate()

std::optional< ModelUpdateProto > operations_research::math_opt::ModelStorageV2::ExportModelUpdate ( const UpdateTrackerId update_tracker,
const bool remove_names = false ) const
inline

Definition at line 549 of file model_storage_v2.h.

◆ ExportModelUpdateV2()

absl::StatusOr< std::optional< ModelUpdateProto > > operations_research::math_opt::ModelStorageV2::ExportModelUpdateV2 ( UpdateTrackerId update_tracker,
bool remove_names = false ) const

Definition at line 138 of file model_storage_v2.cc.

◆ ExportModelV2()

absl::StatusOr< ModelProto > operations_research::math_opt::ModelStorageV2::ExportModelV2 ( bool remove_names = false) const

Definition at line 120 of file model_storage_v2.cc.

◆ FromModelProto()

absl::StatusOr< absl_nonnull std::unique_ptr< ModelStorageV2 > > operations_research::math_opt::ModelStorageV2::FromModelProto ( const ModelProto & model_proto)
static

Definition at line 80 of file model_storage_v2.cc.

◆ GetConstraintData()

template<typename IdType>
AtomicConstraintTraits< IdType >::ConstraintData operations_research::math_opt::ModelStorageV2::GetConstraintData ( IdType id) const
inline

Definition at line 1074 of file model_storage_v2.h.

◆ has_auxiliary_objective()

bool operations_research::math_opt::ModelStorageV2::has_auxiliary_objective ( AuxiliaryObjectiveId id) const
inline

Definition at line 1024 of file model_storage_v2.h.

◆ has_constraint()

template<typename IdType>
bool operations_research::math_opt::ModelStorageV2::has_constraint ( IdType id) const
inline

Definition at line 1117 of file model_storage_v2.h.

◆ has_linear_constraint()

bool operations_research::math_opt::ModelStorageV2::has_linear_constraint ( LinearConstraintId id) const
inline

Definition at line 742 of file model_storage_v2.h.

◆ has_variable()

bool operations_research::math_opt::ModelStorageV2::has_variable ( VariableId id) const
inline

Definition at line 677 of file model_storage_v2.h.

◆ is_linear_constraint_coefficient_nonzero()

bool operations_research::math_opt::ModelStorageV2::is_linear_constraint_coefficient_nonzero ( LinearConstraintId constraint,
VariableId variable ) const
inline

Definition at line 758 of file model_storage_v2.h.

◆ is_linear_objective_coefficient_nonzero()

bool operations_research::math_opt::ModelStorageV2::is_linear_objective_coefficient_nonzero ( ObjectiveId id,
VariableId variable ) const
inline

Definition at line 852 of file model_storage_v2.h.

◆ is_maximize()

bool operations_research::math_opt::ModelStorageV2::is_maximize ( ObjectiveId id) const
inline

Definition at line 814 of file model_storage_v2.h.

◆ is_quadratic_objective_coefficient_nonzero()

bool operations_research::math_opt::ModelStorageV2::is_quadratic_objective_coefficient_nonzero ( ObjectiveId id,
VariableId first_variable,
VariableId second_variable ) const
inline

Definition at line 862 of file model_storage_v2.h.

◆ is_variable_integer()

bool operations_research::math_opt::ModelStorageV2::is_variable_integer ( VariableId id) const
inline

Definition at line 632 of file model_storage_v2.h.

◆ linear_constraint_coefficient()

double operations_research::math_opt::ModelStorageV2::linear_constraint_coefficient ( LinearConstraintId constraint,
VariableId variable ) const
inline

Definition at line 752 of file model_storage_v2.h.

◆ linear_constraint_lower_bound()

double operations_research::math_opt::ModelStorageV2::linear_constraint_lower_bound ( LinearConstraintId id) const
inline

Definition at line 701 of file model_storage_v2.h.

◆ linear_constraint_matrix()

std::vector< std::tuple< LinearConstraintId, VariableId, double > > operations_research::math_opt::ModelStorageV2::linear_constraint_matrix ( ) const
inline

Definition at line 772 of file model_storage_v2.h.

◆ linear_constraint_name()

absl::string_view operations_research::math_opt::ModelStorageV2::linear_constraint_name ( LinearConstraintId id) const
inline

Definition at line 711 of file model_storage_v2.h.

◆ linear_constraint_upper_bound()

double operations_research::math_opt::ModelStorageV2::linear_constraint_upper_bound ( LinearConstraintId id) const
inline

Definition at line 706 of file model_storage_v2.h.

◆ linear_constraints_with_variable()

std::vector< LinearConstraintId > operations_research::math_opt::ModelStorageV2::linear_constraints_with_variable ( VariableId variable) const
inline

Definition at line 796 of file model_storage_v2.h.

◆ linear_objective()

const absl::flat_hash_map< VariableId, double > & operations_research::math_opt::ModelStorageV2::linear_objective ( ObjectiveId id) const
inline

Definition at line 958 of file model_storage_v2.h.

◆ linear_objective_coefficient()

double operations_research::math_opt::ModelStorageV2::linear_objective_coefficient ( ObjectiveId id,
VariableId variable ) const
inline

Definition at line 833 of file model_storage_v2.h.

◆ LinearConstraints()

std::vector< LinearConstraintId > operations_research::math_opt::ModelStorageV2::LinearConstraints ( ) const

Definition at line 110 of file model_storage_v2.cc.

◆ LinearObjectiveNonzeros()

std::vector< VariableId > operations_research::math_opt::ModelStorageV2::LinearObjectiveNonzeros ( ObjectiveId id) const

Definition at line 98 of file model_storage_v2.cc.

◆ name()

const std::string & operations_research::math_opt::ModelStorageV2::name ( ) const
inline

Definition at line 109 of file model_storage_v2.h.

◆ NewUpdateTracker()

UpdateTrackerId operations_research::math_opt::ModelStorageV2::NewUpdateTracker ( )

Definition at line 125 of file model_storage_v2.cc.

◆ next_auxiliary_objective_id()

AuxiliaryObjectiveId operations_research::math_opt::ModelStorageV2::next_auxiliary_objective_id ( ) const
inline

Definition at line 1014 of file model_storage_v2.h.

◆ next_constraint_id()

template<typename IdType>
IdType operations_research::math_opt::ModelStorageV2::next_constraint_id ( ) const
inline

Definition at line 1098 of file model_storage_v2.h.

◆ next_linear_constraint_id()

LinearConstraintId operations_research::math_opt::ModelStorageV2::next_linear_constraint_id ( ) const
inline

Definition at line 732 of file model_storage_v2.h.

◆ next_variable_id()

VariableId operations_research::math_opt::ModelStorageV2::next_variable_id ( ) const
inline

Definition at line 669 of file model_storage_v2.h.

◆ num_auxiliary_objectives()

int operations_research::math_opt::ModelStorageV2::num_auxiliary_objectives ( ) const
inline

Definition at line 1009 of file model_storage_v2.h.

◆ num_constraints()

template<typename IdType>
int64_t operations_research::math_opt::ModelStorageV2::num_constraints ( ) const
inline

Definition at line 1089 of file model_storage_v2.h.

◆ num_linear_constraints()

int64_t operations_research::math_opt::ModelStorageV2::num_linear_constraints ( ) const
inline

Definition at line 728 of file model_storage_v2.h.

◆ num_linear_objective_terms()

int64_t operations_research::math_opt::ModelStorageV2::num_linear_objective_terms ( ObjectiveId id) const
inline

Definition at line 963 of file model_storage_v2.h.

◆ num_quadratic_objective_terms()

int64_t operations_research::math_opt::ModelStorageV2::num_quadratic_objective_terms ( ObjectiveId id) const
inline

Definition at line 971 of file model_storage_v2.h.

◆ num_variables()

int64_t operations_research::math_opt::ModelStorageV2::num_variables ( ) const
inline

Definition at line 665 of file model_storage_v2.h.

◆ objective_name()

absl::string_view operations_research::math_opt::ModelStorageV2::objective_name ( ObjectiveId id) const
inline

Definition at line 872 of file model_storage_v2.h.

◆ objective_offset()

double operations_research::math_opt::ModelStorageV2::objective_offset ( ObjectiveId id) const
inline

Definition at line 826 of file model_storage_v2.h.

◆ objective_priority()

int64_t operations_research::math_opt::ModelStorageV2::objective_priority ( ObjectiveId id) const
inline

Definition at line 820 of file model_storage_v2.h.

◆ operator=()

ModelStorageV2 & operations_research::math_opt::ModelStorageV2::operator= ( const ModelStorageV2 & )
delete

◆ quadratic_objective_coefficient()

double operations_research::math_opt::ModelStorageV2::quadratic_objective_coefficient ( ObjectiveId id,
VariableId first_variable,
VariableId second_variable ) const
inline

Definition at line 842 of file model_storage_v2.h.

◆ quadratic_objective_terms()

std::vector< std::tuple< VariableId, VariableId, double > > operations_research::math_opt::ModelStorageV2::quadratic_objective_terms ( ObjectiveId id) const
inline

Definition at line 978 of file model_storage_v2.h.

◆ set_is_maximize()

void operations_research::math_opt::ModelStorageV2::set_is_maximize ( ObjectiveId id,
bool is_maximize )
inline

Definition at line 880 of file model_storage_v2.h.

◆ set_linear_constraint_coefficient()

void operations_research::math_opt::ModelStorageV2::set_linear_constraint_coefficient ( LinearConstraintId constraint,
VariableId variable,
double value )
inline

Definition at line 764 of file model_storage_v2.h.

◆ set_linear_constraint_lower_bound()

void operations_research::math_opt::ModelStorageV2::set_linear_constraint_lower_bound ( LinearConstraintId id,
double lower_bound )
inline

Definition at line 718 of file model_storage_v2.h.

◆ set_linear_constraint_upper_bound()

void operations_research::math_opt::ModelStorageV2::set_linear_constraint_upper_bound ( LinearConstraintId id,
double upper_bound )
inline

Definition at line 723 of file model_storage_v2.h.

◆ set_linear_objective_coefficient()

void operations_research::math_opt::ModelStorageV2::set_linear_objective_coefficient ( ObjectiveId id,
VariableId variable,
double value )
inline

Definition at line 916 of file model_storage_v2.h.

◆ set_maximize()

void operations_research::math_opt::ModelStorageV2::set_maximize ( ObjectiveId id)
inline

Definition at line 890 of file model_storage_v2.h.

◆ set_minimize()

void operations_research::math_opt::ModelStorageV2::set_minimize ( ObjectiveId id)
inline

Definition at line 894 of file model_storage_v2.h.

◆ set_objective_offset()

void operations_research::math_opt::ModelStorageV2::set_objective_offset ( ObjectiveId id,
double value )
inline

Definition at line 907 of file model_storage_v2.h.

◆ set_objective_priority()

void operations_research::math_opt::ModelStorageV2::set_objective_priority ( ObjectiveId id,
int64_t value )
inline

Definition at line 898 of file model_storage_v2.h.

◆ set_quadratic_objective_coefficient()

void operations_research::math_opt::ModelStorageV2::set_quadratic_objective_coefficient ( ObjectiveId id,
VariableId first_variable,
VariableId second_variable,
double value )
inline

Definition at line 928 of file model_storage_v2.h.

◆ set_variable_as_continuous()

void operations_research::math_opt::ModelStorageV2::set_variable_as_continuous ( VariableId id)
inline

Definition at line 661 of file model_storage_v2.h.

◆ set_variable_as_integer()

void operations_research::math_opt::ModelStorageV2::set_variable_as_integer ( VariableId id)
inline

Definition at line 657 of file model_storage_v2.h.

◆ set_variable_is_integer()

void operations_research::math_opt::ModelStorageV2::set_variable_is_integer ( VariableId id,
bool is_integer )
inline

Definition at line 652 of file model_storage_v2.h.

◆ set_variable_lower_bound()

void operations_research::math_opt::ModelStorageV2::set_variable_lower_bound ( VariableId id,
double lower_bound )
inline

Definition at line 642 of file model_storage_v2.h.

◆ set_variable_upper_bound()

void operations_research::math_opt::ModelStorageV2::set_variable_upper_bound ( VariableId id,
double upper_bound )
inline

Definition at line 647 of file model_storage_v2.h.

◆ SortedAuxiliaryObjectives()

std::vector< AuxiliaryObjectiveId > operations_research::math_opt::ModelStorageV2::SortedAuxiliaryObjectives ( ) const
inline

Definition at line 1039 of file model_storage_v2.h.

◆ SortedConstraints()

template<typename IdType>
std::vector< IdType > operations_research::math_opt::ModelStorageV2::SortedConstraints ( ) const

Definition at line 1142 of file model_storage_v2.h.

◆ SortedLinearConstraints()

std::vector< LinearConstraintId > operations_research::math_opt::ModelStorageV2::SortedLinearConstraints ( ) const

Definition at line 115 of file model_storage_v2.cc.

◆ SortedVariables()

std::vector< VariableId > operations_research::math_opt::ModelStorageV2::SortedVariables ( ) const

Definition at line 94 of file model_storage_v2.cc.

◆ variable_lower_bound()

double operations_research::math_opt::ModelStorageV2::variable_lower_bound ( VariableId id) const
inline

Definition at line 624 of file model_storage_v2.h.

◆ variable_name()

absl::string_view operations_research::math_opt::ModelStorageV2::variable_name ( VariableId id) const
inline

Definition at line 636 of file model_storage_v2.h.

◆ variable_upper_bound()

double operations_research::math_opt::ModelStorageV2::variable_upper_bound ( VariableId id) const
inline

Definition at line 628 of file model_storage_v2.h.

◆ Variables()

std::vector< VariableId > operations_research::math_opt::ModelStorageV2::Variables ( ) const

Definition at line 90 of file model_storage_v2.cc.

◆ variables()

std::vector< VariableId > operations_research::math_opt::ModelStorageV2::variables ( ) const
inline

Definition at line 166 of file model_storage_v2.h.

◆ variables_in_linear_constraint()

std::vector< VariableId > operations_research::math_opt::ModelStorageV2::variables_in_linear_constraint ( LinearConstraintId constraint) const
inline

Definition at line 783 of file model_storage_v2.h.

◆ VariablesInConstraint()

template<typename IdType>
std::vector< VariableId > operations_research::math_opt::ModelStorageV2::VariablesInConstraint ( IdType id) const
inline

Definition at line 1159 of file model_storage_v2.h.


The documentation for this class was generated from the following files: