Hi Jonathan,
First, identify the model class to which you want to add the set. Adding it to the
Energy System class makes sense if it is used throughout the optimization problem (actually, this is more for order and style, because it will be accessible from anywhere, no matter where you place it). If you use your materials
only in the
Technology class, you can also add them to the "construct_sets()"
there.
No matter in which "construct_sets()" you put it, follow the structure of the existing sets there. For example, an idea could be:
self.optimization_setup.sets.add_set(
name="materials",
data=self.materials, <--- you would need to load this from the system.json as for example the
list of technologies doc="Critical materials that are needed for constructing the technologies."
)
I don't think you need to specify an index set, because the selection of materials doesn't depend on anything.
I hope this helps!
Cheers,
Jacob