Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <model.h>
Public Member Functions | |
bool | Merge (absl::string_view other_name, const Domain &other_domain, bool other_temporary) |
std::string | DebugString () const |
Public Attributes | |
std::string | name |
Domain | domain |
bool | temporary: 1 |
bool | active: 1 |
Friends | |
class | Model |
An int var is a name with a domain of possible values, along with some tags. Typically, a Variable is on the heap, and owned by the global Model object.
std::string operations_research::fz::Variable::DebugString | ( | ) | const |
bool operations_research::fz::Variable::Merge | ( | absl::string_view | other_name, |
const Domain & | other_domain, | ||
bool | other_temporary ) |
This method tries to unify two variables. This can happen during the parsing of the model or during presolve. This is possible if at least one of the two variable is not the target of a constraint. (otherwise it returns false). The semantic of the merge is the following:
bool operations_research::fz::Variable::active |
bool operations_research::fz::Variable::temporary |