Conversion of Abstract to Concrete

6 views
Skip to first unread message

Ja Eddouibi

unread,
Aug 26, 2025, 10:46:32 AM (12 days ago) Aug 26
to Pyomo Forum
Hi everyone,
Hope you are doing well.
Is there are any script or feature in Pyomo to convert an Abstract model to a Concrete one using data from excel file autmatically ?

Thanks for your feedback

Ahmad Heidari

unread,
Aug 27, 2025, 10:35:49 AM (11 days ago) Aug 27
to Pyomo Forum
Hi Ja,

The short answer is no; however, the long answer is as follows. You can use DataPortal(), save your data into a spreadsheet, import it, and then call model.create_instance(...) to get a ConcreteModel.

Best,
Ahmad  

Reply all
Reply to author
Forward
0 new messages