Module: ORTools::Variable

Includes:
ExpressionMethods
Included in:
MPVariable, MathOpt::Variable, RoutingIntVar, SatBoolVar, SatIntVar
Defined in:
lib/or_tools/variable.rb

Instance Attribute Summary

Attributes included from ExpressionMethods

#parts

Instance Method Summary collapse

Methods included from ExpressionMethods

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

Instance Method Details

#inspectObject



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

def inspect
  name
end

#varsObject



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

def vars
  @vars ||= [self]
end