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

#include <constraint_solveri.h>

Public Member Functions

int64_t Min () const
 
int64_t Max () const
 
bool SetMin (int64_t new_min)
 
bool SetMax (int64_t new_max)
 
void Relax ()
 

Friends

class LocalSearchState
 Only LocalSearchState can construct LocalSearchVariables.
 

Detailed Description

A LocalSearchState Variable can only be created by a LocalSearchState, then it is meant to be passed by copy. If at some point the duplication of LocalSearchState pointers is too expensive, we could switch to index only, and the user would have to know the relevant state. The present setup allows to ensure that variable users will not misuse the state.

Definition at line 2026 of file constraint_solveri.h.

Member Function Documentation

◆ Max()

int64_t operations_research::LocalSearchState::Variable::Max ( ) const
inline

Definition at line 2029 of file constraint_solveri.h.

◆ Min()

int64_t operations_research::LocalSearchState::Variable::Min ( ) const
inline

Definition at line 2028 of file constraint_solveri.h.

◆ Relax()

void operations_research::LocalSearchState::Variable::Relax ( )
inline

Definition at line 2038 of file constraint_solveri.h.

◆ SetMax()

bool operations_research::LocalSearchState::Variable::SetMax ( int64_t new_max)
inline

Definition at line 2034 of file constraint_solveri.h.

◆ SetMin()

bool operations_research::LocalSearchState::Variable::SetMin ( int64_t new_min)
inline

Definition at line 2030 of file constraint_solveri.h.

Friends And Related Symbol Documentation

◆ LocalSearchState

friend class LocalSearchState
friend

Only LocalSearchState can construct LocalSearchVariables.

Definition at line 2045 of file constraint_solveri.h.


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