High CPU time when defnining a high dimensional variable
回答済みIt takes a great deal of CPU time to define a high dimensional variable specially when the number of elements per dimension is large. How could we resolve this?
0
-
Hi,
Are you saying that creating the variables with "model.addVars( N1, N2, N3, ... )" takes a long time?
The main question is whether all variables in N1 x N2 x N3 x ... are needed in your model. If not, it makes sense to predefine a list of tuples that corresponds to a subset of the complete cross-product, and use this in "model.addVars( tuples )".
Best regards,
Mario0
サインインしてコメントを残してください。
コメント
1件のコメント