ClimateMARGO / ClimateMARGO.jl

Julia implementation of MARGO, an idealized climate-economic modelling framework for Optimizing trade-offs between emissions Mitigation, Adaptation, carbon dioxide Removal, and solar Geoengineering.
https://margo.plutojl.org/
MIT License
67 stars 13 forks source link

Use diagnostics inside JuMP [work in progress] #62

Open fonsp opened 3 years ago

fonsp commented 3 years ago

See #18

Right now I just changed the field types for control values to Real instead of Float64, to allow JuMP to call our diagnostic functions with its Dual number type.

Changing the field types of a struct from concrete (like Float64 or Vector{Float64}) to abstract (like Real or Vector{<:Real}) can impact performance, so I will have to look into this first :)