Method: Simplex#replace_basic_variable
- Defined in:
- lib/simplex.rb
#replace_basic_variable(hash) ⇒ Object
108 109 110 111 112 113 |
# File 'lib/simplex.rb', line 108 def replace_basic_variable(hash) from, to = hash.keys.first, hash.values.first @basic_vars.delete(from) @basic_vars << to @basic_vars.sort! end |