julia-mpsge / MPSGE_MP.jl

MIT License
1 stars 0 forks source link

Overhaul of ScalarDemand struct #18

Open mitchphillipson opened 4 months ago

mitchphillipson commented 4 months ago

There are several issues with the ScalarDemand struct

  1. The struct should be renamed Demand to match Production
  2. The values for both final_demands and endowments dictionaries should be vectors with accessor functions which return the sum of the vector
  3. The @demand macro should be reconsidered to take a single block, rather than separate blocks for final_demands and endowments.
  4. The raw_quantity functions should return a float regardless of model status