Pyomo 6.4.2: Integration of NumPy

62 views
Skip to first unread message

Emrullah Ertürk

unread,
Aug 18, 2022, 1:24:41 AM8/18/22
to Pyomo Forum
Hi, Its my first entry in here. I want to learn more about one of 6.4.2 release change.
"Integration of NumPy support into the Pyomo expression system" does means matrix operations can be done via NumPy? I could not found exact commit about this change. Can anyone explain more extensively? Thanks for answers.

Emrullah Erturk
Graduate Chemical Engineering Student

Siirola, John D

unread,
Aug 18, 2022, 1:31:48 AM8/18/22
to pyomo...@googlegroups.com

You are referring to the release notes for the 6.0 series of Pyomo releases.  That particular functionality was actually first released in Pyomo 6.1 through PRs #2027, #2034, and #2070 (see CHANGELOG.txt).

 

You can use *some* numpy matrix operations when defining constraints or sets of constraints.  Note that this mostly provided for convenience: because Pyomo creates explicit expression tree representations (in Python) for each constraint, doing that “through numpy” actually adds overhead to the constraint generation process.

 

John

--
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 on the web visit https://groups.google.com/d/msgid/pyomo-forum/69c2119d-4cb9-4707-95d6-bcabf5f55273n%40googlegroups.com.

Emrullah Ertürk

unread,
Aug 18, 2022, 1:50:24 AM8/18/22
to Pyomo Forum
Thank you for rapid answer.

18 Ağustos 2022 Perşembe tarihinde saat 08:31:48 UTC+3 itibarıyla jds...@sandia.gov şunları yazdı:

Tao Wu

unread,
Aug 18, 2022, 10:08:35 AM8/18/22
to pyomo...@googlegroups.com
Thank you for the valuable information. I would like to know if any examples about the use of matrix operation are available?

Best regards,
Tao Wu


'Siirola, John D' via Pyomo Forum <pyomo...@googlegroups.com> 于2022年8月18日周四 00:31写道:
Reply all
Reply to author
Forward
0 new messages