Efficient way to implement multi-index nonlinear constraints in ExaModels? #189
Unanswered
Yanlingogo
asked this question in
Q&A
Replies: 1 comment
-
|
The best way to handle summations within constraint is to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m implementing a PCE-expanded AC power flow model. In JuMP, one of my nonlinear constraints in JuMP form looks like:
And the code in ExaModel is below, the main difference is that I flatten the elements in T3_zip:
I found the function
ExaModel(JuMPmodel)works well. I think if I directly code the model for ExaModel, the execution will be more efficient, but results turned out to be different. the model construction with second part code becomes much slower and the resulting nnzj/nnzh are 3–7× larger than the JuMP-generated ExaModel.So my questions are:
Any advice or example code would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions