Skip to content

Commit

Permalink
normalize extreme rays
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanneau committed Jan 4, 2019
1 parent a73acdd commit 3e699fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Oracle/oracle_mip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function query!(

elseif oracle.status == PrimalFeasible || oracle.status == PrimalDualFeasible
# A primal solution is available
println("Sub-problem $(oracle.index) solved to sub-optimality")
oracle.pricing_dual_bound = MPB.getobjbound(sp)
x = MPB.getsolution(sp)
oracle.new_columns = [
Expand Down Expand Up @@ -164,6 +165,7 @@ function query!(
# Sub-problem is unbounded
# Return extreme ray
ray = MPB.getunboundedray(sp)
ray ./= norm(ray, 2)
oracle.new_columns = [
Column(
dot(oracle.costs, ray),
Expand Down

0 comments on commit 3e699fa

Please sign in to comment.