Class: ORTools::MathOpt::Variable

Inherits:
Object
  • Object
show all
Includes:
Variable
Defined in:
lib/or_tools/math_opt/variable.rb

Instance Attribute Summary

Attributes included from ExpressionMethods

#parts

Instance Method Summary collapse

Methods included from Variable

#inspect, #vars

Methods included from ExpressionMethods

#!=, #*, #+, #-, #-@, #<, #<=, #==, #>, #>=, #coerce, #inspect, #to_s, #vars

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/or_tools/math_opt/variable.rb', line 6

def eql?(other)
  other.is_a?(self.class) && _eql?(other)
end

#hashObject



10
11
12
# File 'lib/or_tools/math_opt/variable.rb', line 10

def hash
  id.hash
end