Class: ORTools::MPVariable

Inherits:
LinearExpr show all
Defined in:
lib/or_tools/mp_variable.rb

Instance Method Summary collapse

Methods inherited from LinearExpr

#*, #+, #-, #-@, #/, #<=, #==, #>=, #coeffs, #coerce, #inspect, #solution_value

Instance Method Details

#add_self_to_coeff_map_or_stack(coeffs, multiplier, stack) ⇒ Object



3
4
5
# File 'lib/or_tools/mp_variable.rb', line 3

def add_self_to_coeff_map_or_stack(coeffs, multiplier, stack)
  coeffs[self] += multiplier
end

#to_sObject



7
8
9
# File 'lib/or_tools/mp_variable.rb', line 7

def to_s
  name
end