Skip to content

Commit

Permalink
No inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 6, 2024
1 parent 5fb6ed8 commit 04fbbc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/or_tools/mp_variable.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module ORTools
class MPVariable < LinearExpr
class MPVariable
include LinearExprUtils

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

0 comments on commit 04fbbc2

Please sign in to comment.