Hi Ahmad,
Thank you for the reply. The reason I wanted to use the pyomo dataportal functionality was so that I can generalize my pyomo code and make modifications to the sets and parameters in the spreadsheet and automatically load them into the problem. This was so that I don’t need to manually make import functions for each set, and parameter in my project using e.g. pandas. So I specifically didn’t want to initialize any sets manually.
If I’m not completely mistaken this is easily possible in GAMS in the way I described and based on pyomo documentation it would seem to be possible using pyomo dataportal but fails when using indexed sets. Now reading the documentation again it might be that indexed sets are only supported with json and yaml files, but indexed parameters could be supported with tabular data.
Documentation I’m referring to: https://pyomo.readthedocs.io/en/6.9.3/howto/abstract_models/data/dataportals.html
Thanks
Santeri
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pyomo-forum/f5563efe-533f-45d2-b15e-29af8fca4ae0n%40googlegroups.com.