porting a pyomo concrete model to another computer

88 views
Skip to first unread message

Marek Makowski

unread,
Sep 8, 2023, 4:10:42 AM9/8/23
to Pyomo Forum
I need to store concrete model on one computer and use it as a block in an another model run on another machine. It appears that pickle supports this (at least for a small test model) provided that the model is specified without using decorations (decorations cause problems for pickle).

Please suggest how to achieve porting for models specified with the decorations (which I find to be very useful). I heard that maybe dill or json can support this. However, maybe someone can share her/his experience on either one of these ways or.alternatives.

Thanks in advance,
Marek

Marek Makowski

unread,
Sep 15, 2023, 8:49:30 AM9/15/23
to Pyomo Forum
I just want to share the experience with using dill for porting models specified with the python decorations: this works, at least on macOS (porting between different OSs remains to be explored).

Cheers,
Marek

Reply all
Reply to author
Forward
0 new messages