I’m trying to minimize a function with JuMP. The variable of the objective function is a 30 element vector x and the optimization is supposed to start from a given vector x0.
How can I give vector x0 as the start? If i define the x variable as follows:
@variable(model, x, start = x0)
I get the following error:
ERROR: LoadError: MethodError: no method matching constructvariable!(::JuMP.Model,
::JuMP.#_error#103{Tuple{Symbol,Symbol,Expr}}, ::Float64, ::Float64, ::Symbol, ::String, ::Array{Float64,1})
Closest candidates are:
constructvariable!(::JuMP.Model, ::Function, ::Number, ::Number, ::Symbol, ::Number, ::Array{T,1}
where T, ::Array{Float64,1}, ::AbstractString, ::Number; extra_kwargs...) at C:\Users\mra136\.julia\
v0.6\JuMP\src\macros.jl:824
constructvariable!(::JuMP.Model, ::Function, ::Number, ::Number, ::Symbol, ::AbstractString,
::Number; extra_kwargs...) at C:\Users\mra136\.julia\v0.6\JuMP\src\macros.jl:831
Which I understand is saying that the start can only be a single number. Thanks for any help in advance.