Forum Discussion
FICO
3 years agoCommunity Manager
xpress.Sum speed and behavior on numpy arrays
As a follow-up to my question posted recently below, please consider the following code snippet: import xpress as xp
import numpy as np
x = xp.vars(5, 5, 5, name = 'x')
sum1 = np.array([xp.Sum([x[:...
FICO
3 years agoCommunity Manager
Hi Thomas,
- It is not clear why it is faster to sum several small arrays than to sum one large array. I will plan to look into this in a future release.
- I think the behaviour of the Sum function must have changed at some point (probably quite long ago by now) but the documentation was not updated. I will get the documentation fixed.
- Which part of the documentation are you referring to here?
Related Content
Related Content
Unexpected behavior when using xpress.sum over numpy array slice of xpress variables
I have an application using a 4-D numpy array of xpress variables of which I only want to sum two dimensions leaving a 2-D numpy array. This gives a strange behavior (incorrect) for the first term of...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Comments- 0Views0likes2Comments