Pyomo5 Expressions

12 views
Skip to first unread message

Bill Hart

unread,
Nov 29, 2017, 3:08:42 PM11/29/17
to Pyomo Developers
Hi, all:

I have been making progress with a new expression system for Pyomo (called "Pyomo5") that addresses some performance issues in Pyomo and seamlessly supports PyPy.

I'm actively merging commits from Pyomo's master branch to the expr_dev branch where this capability is being developed.  And I'd like to work with developers this month to confirm that their code that walks expression trees has been reworked.

As part of those discussions, I'd like to review the design of Pyomo5 expressions.  I've added documentation for these expressions on the expr_dev branch, which can be viewed here:


I consider this design a working draft, and I've already gotten some critical feedback about various aspects of it.  Please reply here or send me a note directly with questions and concerns.

Finally, I'd like to host a review of this design on December 12th at 12 noon MT.  I'll send out details later for how to call-in.


FYI, I'm not sure when this new capability will be merged into the Pyomo master branch.  There are some competing development activities this month, so this might not happen until mid-January.

Cheers,

--Bill

Michael Bynum

unread,
Nov 29, 2017, 4:28:49 PM11/29/17
to pyomo-de...@googlegroups.com
Bill, 

The persistent solver interfaces may need to be updated. I'm still working on tests for these (which will have to be run on Jenkins?), so you won't see test failures on travis even if they are not updated. Right now, I am not walking the expression tree for these solvers. Instead, I am using get_canonical_repn. With pyomo5, will get_canonical_repn still be supported? If not, do I need to walk the expression tree?

Thanks,
Michael

--
You received this message because you are subscribed to the Google Groups "Pyomo Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bill Hart

unread,
Dec 3, 2017, 9:20:22 AM12/3/17
to Pyomo Developers
In Pyomo5 expressions, you will be able to call get_standard_repn, which is a generalization of the get_ampl_repn logic supported on the Pyomo master branch.

--Bill

Michael Bynum

unread,
Dec 3, 2017, 9:33:42 AM12/3/17
to pyomo-de...@googlegroups.com
 Perfect. Thanks Bill. That should be an easy update then. 

Michael
Reply all
Reply to author
Forward
0 new messages