julia-mpsge / MPSGE.jl

MPSGE for Julia
MIT License
14 stars 2 forks source link

(Should) IndexedParameter values be articulately linked to name keys? #120

Open EliLazarus opened 1 year ago

EliLazarus commented 1 year ago

As of Indexed_Params_to_array_values, values for indexed parameters are entered as arrays. But that relies on an assumption that the indexing order and the parameter order are the same. Probably the data should be some kind of named array (e.g. DenseAxisArray), and we should articulately enter the parameters with the specific index, right?

mitchphillipson commented 5 months ago

Yes, this is less of an issue now, but can still be annoying. We want JuMP like syntax to do

@parameter(M, P[i=I], initial_p_values[i])

This is one of post-documentation goals.

EliLazarus commented 5 months ago

I think this is done (woohoo!) and can be closed. The syntax issue is separate afaic.