julia-mpsge / MPSGE_MP.jl

MIT License
1 stars 0 forks source link

Setting default values in indexed parameters #21

Open mitchphillipson opened 4 months ago

mitchphillipson commented 4 months ago

Issue

It's expected that

M = MPSGEModel()

I = [:a,:b]

@parameter(M, X[I], [1,2])

will set the initial values of the parameter correctly.

The Suggested Correct Syntax

The syntax should be

M = MPSGEModel()

I = [:a,:b]
D = Dict(:a => 1, :b => 2)

@parameter(M, X[i=I], D[i])

to match JuMP