diff --git a/src/solver.jl b/src/solver.jl index 38e58fdb..0c29a97d 100644 --- a/src/solver.jl +++ b/src/solver.jl @@ -167,6 +167,21 @@ variable_vector(opt_model::J.Model) = J.value.(opt_model[:x]) export variable_vector +""" +$(TYPEDSIGNATURES) + +Tell JuMP to use the given `values` as starting primal values for the variables +in the model created by [`optimization_model`](@ref). Good variable vectors can +be obtained via [`variable_vector`](@ref). + +Internally this broadcasts JuMP's `set_start_value` over the variables of the +model. +""" +set_start_variable_vector!(opt_model::J.Model, values) = + J.set_start_value.(opt_model[:x], values) + +export set_start_variable_vector! + """ Minimal