Permalink
Browse files

Merge pull request #10 from njwhite/master

Expose glp_mip_row_val
  • Loading branch information...
2 parents a40952d + 2e9d471 commit e0a36e7ac3a8918f9ce55c9c4d337fbaf4f89986 @wtaysom committed Sep 4, 2015
Showing with 9 additions and 1 deletion.
  1. +5 −1 lib/rglpk.rb
  2. +4 −0 test/test_problem_kind.rb
View
@@ -314,7 +314,11 @@ def get_stat
def get_prim
Glpk_wrapper.glp_get_row_prim(@p.lp, @i)
end
-
+
+ def mip_val
+ Glpk_wrapper.glp_mip_row_val(@p.lp, @i)
+ end
+
def get_dual
Glpk_wrapper.glp_get_row_dual(@p.lp, @i)
end
@@ -45,6 +45,10 @@ def verify_results(*results)
@p.cols.each_with_index do |col, index|
assert_equal results[index], col.send(value_method)
end
+
+ @p.rows.each do |row|
+ refute_nil row.send(value_method)
+ end
end
end

0 comments on commit e0a36e7

Please sign in to comment.