Class: ORTools::MPVariable

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

Overview

TODO change to VariableExpr in 0.7.0

Instance Method Summary collapse

Methods inherited from LinearExpr

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

Instance Method Details

#add_self_to_coeff_map_or_stack(coeffs, multiplier, stack) ⇒ Object



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

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

#to_sObject



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

def to_s
  name
end