-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete constraint(s), add and remove multiple warmstarts #121
Conversation
src/cpx_model.jl
Outdated
@@ -174,6 +174,57 @@ function set_warm_start!(model::Model, indx::IVec, val::FVec, effortlevel::Integ | |||
end | |||
end | |||
|
|||
function add_warm_start!(model::Model, x::Vector{Vector{Float64}}, efforts::Vector{Cint}) | |||
beg::Vector{Cint}, inds::Vector{Cint}, vals::Vector{Cdouble} = Cint[], Cint[], Cdouble[] | |||
count::Int64 = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation here shouldn't be necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that. Its just an old habit.
src/cpx_model.jl
Outdated
@@ -174,6 +174,57 @@ function set_warm_start!(model::Model, indx::IVec, val::FVec, effortlevel::Integ | |||
end | |||
end | |||
|
|||
function add_warm_start!(model::Model, x::Vector{Vector{Float64}}, efforts::Vector{Cint}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not crazy about the naming here. Probably better to write this as set_warm_starts!
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Sorry for the confusion, I meant |
Why not follow the CPLEX terminology for these wrappers and call them mip starts instead of warm starts? |
Make sure to account for renamings in other parts of the code, e.g., |
@mlubin Actually, I haven't tested it using JuMP.jl or MathProgBase.jl. I am using CPLEX.jl directly / independently to create, modify and solve a mip. So, these functions have not been wrapped for MathProgBase.jl. |
I thought you had also renamed |
I didn't rename the previous |
You have two options:
|
No description provided.