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

#include <inverted_bounds.h>

Public Member Functions

bool empty () const
 Returns true if this object contains no variable/constraint ids.
 
absl::Status ToStatus () const
 

Public Attributes

std::vector< int64_t > variables
 Ids of the variables with inverted bounds.
 
std::vector< int64_t > linear_constraints
 Ids of the linear constraints with inverted bounds.
 

Detailed Description

The ids of the variables and linear constraints with inverted bounds (lower_bounds > upper_bounds).

This is used internally by solvers to return an error on Solve() when bounds are inverted.

Definition at line 32 of file inverted_bounds.h.

Member Function Documentation

◆ empty()

bool operations_research::math_opt::InvertedBounds::empty ( ) const
inline

Returns true if this object contains no variable/constraint ids.

Definition at line 34 of file inverted_bounds.h.

◆ ToStatus()

absl::Status operations_research::math_opt::InvertedBounds::ToStatus ( ) const

Returns an error listing at most kMaxInvertedBounds variables and linear constraints ids (kMaxInvertedBounds of each). Returns OK status if this object is empty.

Definition at line 28 of file inverted_bounds.cc.

Member Data Documentation

◆ linear_constraints

std::vector<int64_t> operations_research::math_opt::InvertedBounds::linear_constraints

Ids of the linear constraints with inverted bounds.

Definition at line 45 of file inverted_bounds.h.

◆ variables

std::vector<int64_t> operations_research::math_opt::InvertedBounds::variables

Ids of the variables with inverted bounds.

Definition at line 42 of file inverted_bounds.h.


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