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

#include <invalid_indicators.h>

Classes

struct  VariableAndConstraint
 

Public Member Functions

absl::Status ToStatus () const
 
void Sort ()
 Sort the elements lexicographically by (constraint ID, variable ID).
 

Public Attributes

std::vector< VariableAndConstraintinvalid_indicators
 

Detailed Description

Indicator constraints which are invalid because their associated indicator variables are not binary.

This is used internally by solvers to return an error on Solve().

Definition at line 31 of file invalid_indicators.h.

Member Function Documentation

◆ Sort()

void operations_research::math_opt::InvalidIndicators::Sort ( )

Sort the elements lexicographically by (constraint ID, variable ID).

Definition at line 53 of file invalid_indicators.cc.

◆ ToStatus()

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

Returns an error listing at most kMaxNonBinaryIndicatorVariables indicator constraints whose indicator variables are not binary. Returns OK status if this object is empty.

Definition at line 30 of file invalid_indicators.cc.

Member Data Documentation

◆ invalid_indicators

std::vector<VariableAndConstraint> operations_research::math_opt::InvalidIndicators::invalid_indicators

The variable and constraint pairs associated with indicator constraints whose indicator variables are not binary.

Definition at line 47 of file invalid_indicators.h.


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