Class: ORTools::Solver

Inherits:
Object
  • Object
show all
Defined in:
lib/or_tools/solver.rb

Instance Method Summary collapse

Instance Method Details

#sum(arr) ⇒ Object



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

def sum(arr)
  arr.sum(LinearExpr.new)
end