# Hierarchical/compositional construction of large optimization models

**URL:** <https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303>\
**Category:** Optimization (Mathematical)\
**Created:** [June 13, 2023, 9:30pm UTC](https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303 "2023-06-13T21:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![slwu89](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/slwu89/32/217323_2.png) [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Post date:** [September 4, 2024, 4:20am UTC](https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303/5 "2024-09-04T04:20:56Z")

</div>

@odow I hope you don’t mind me bumping this old conversation. I was curious if after some time there were any developments regarding your thoughts on the modular construction of things (especially since the nonlinear rewrite ended up finished).

After a year of experience in this (at that time) new field to me, I completely agree that the data modeling stage is often more important than the details of building the optimization model.

That being said, as you may have noticed from my response in another thread (linked below), I’m very interested in the potential of the C-Set data structure to bring the data model and the optimization model closer together. Hence my interest to understand in a bit more detail the thoughts you sketched out in your last reply here, I’m interested to see if this approach can also have benefits for this modular construction/testing of the optimization model.

> [@JuMP takes long time to load the problem/model](https://discourse.julialang.org/t/jump-takes-long-time-to-load-the-problem-model/118593/14):
>
> Very nice new tutorial. Being interested in model building for these things, I typed up a quick tutorial of using acsets (attributed C-sets, a data structure from applied category theory, but in practice something akin to an in-memory relational database with additional equations on paths possible) for generating this type of model. They are exported from the Catlab.jl package. The full script is here [https://jump.dev/JuMP.jl/dev/tutorials/getting\_started/sum\_if/ with acsets (github.com)](https://gist.github.com/slwu89/6adf107fb345a31101545520362789e7) The da…

---

_[View the full topic](https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303)._
