Skip to content

Commit

Permalink
add computeIIS wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Aug 4, 2013
1 parent 0659ee5 commit 9ad94d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gurobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using BinDeps
export add_rangeconstr!, add_rangeconstrs!

export lp_model, qp_model
export optimize
export optimize, computeIIS

export get_status, OptimInfo, get_optim_info, get_objval
export get_solution
Expand Down
9 changes: 9 additions & 0 deletions src/grb_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ function optimize(model::Model)
nothing
end

function computeIIS(model::Model)
@assert model.ptr_model != C_NULL
ret = @grb_ccall(computeIIS, Cint, (Ptr{Void},), model)
if ret != 0
throw(GurobiError(model.env, ret))
end
nothing
end


#################################################
#
Expand Down

0 comments on commit 9ad94d4

Please sign in to comment.