You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @variable and constraint macros seem really slow under the new version of Plasmo when defining over sets. For example, the last line below in Plasmo v0.5.4 runs in <0.1 seconds, but it runs in >5 seconds in Plasmo v0.6.1.
using Plasmo, JuMP
g =OptiGraph()
X =100
Y =100@optinode(g, n)
@time@variable(n, x[1:X, 1:Y] >=0);
Perhaps it has something to do with how the names are set. When I run the code below, it takes approximately the same amount of time in both v0.5.4 and v0.6.1.
@timebeginfor i in1:X
for j in1:Y
@variable(n)
endendend
I believe the same problem arises with constraints based on some other code I am running.
The text was updated successfully, but these errors were encountered:
The
@variable
andconstraint
macros seem really slow under the new version of Plasmo when defining over sets. For example, the last line below in Plasmo v0.5.4 runs in <0.1 seconds, but it runs in >5 seconds in Plasmo v0.6.1.Perhaps it has something to do with how the names are set. When I run the code below, it takes approximately the same amount of time in both v0.5.4 and v0.6.1.
I believe the same problem arises with constraints based on some other code I am running.
The text was updated successfully, but these errors were encountered: