Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::RangeMinMaxIndexFunction Class Referenceabstract

#include <range_query_function.h>

Public Member Functions

virtual ~RangeMinMaxIndexFunction ()=default
 
virtual int64_t RangeMaxArgument (int64_t from, int64_t to) const =0
 
virtual int64_t RangeMinArgument (int64_t from, int64_t to) const =0
 

Detailed Description

RangeMinMaxIndexFunction is different from RangeIntToIntFunction in two ways:

  1. It does not support codomain or value queries.
  2. For domain queries it returns an argument where the minimum/maximum is attained, rather than the minimum/maximum value.

Definition at line 60 of file range_query_function.h.

Constructor & Destructor Documentation

◆ ~RangeMinMaxIndexFunction()

virtual operations_research::RangeMinMaxIndexFunction::~RangeMinMaxIndexFunction ( )
virtualdefault

Member Function Documentation

◆ RangeMaxArgument()

virtual int64_t operations_research::RangeMinMaxIndexFunction::RangeMaxArgument ( int64_t from,
int64_t to ) const
pure virtual

Suppose f is the abstract underlying function. Returns an x from [from, to), such that f(x) => f(y) for every y from [from, to).

◆ RangeMinArgument()

virtual int64_t operations_research::RangeMinMaxIndexFunction::RangeMinArgument ( int64_t from,
int64_t to ) const
pure virtual

Returns an x from [from, to), such that f(x) <= f(y) for every y from [from, to).


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