Forum Discussion
FICO
4 years agoCommunity Manager
?1030Error: Duplicate column names
I was adding some variables to the problem but is showed error telling there are duplicate columns in variable. I have created a small code to reproduce the error which is as follows.
import xpress as xp
prob = xp.problem()
key1 = ''
for i in range(150):
key1 += '1'
key1 += '2'
key2 = ''
for i in range(150):
key2 += '1'
key2 += '3'
indices = [key1,key2]
var1 = xp.vars(indices,vartype=xp.binary)
prob.addVariable(var1)In my opinion, the column names are checked only to a number of characters. I wanted to know
- What is the limit of this number?
- If this number can be changed?
Thanks!
1 Reply
- FICOCommunity Manager
The hard-coded limit for names in the Xpress Python API currently is 150 characters. There is no way to change that at the moment. Names will just silently be truncated.
Related Content
Related Content
XNLP_VERBOSE turn off WARNING column/row has been ignored....
Hi! When using XNLP_VERBOSE Is there any way to turn off the warning messages that a row has been ignored when constructing a model? I am finding that the model spends more on time printing out w...2 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1CommentSum duplicate entries from input data file
Is there a command to sum duplicate entries from an input data file in an "initializations from..." block? For example, if I have a file input.dat: Cost: [ (A) 1 (A) 2 (B) 5 ] and my Mosel co...8 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1Commentvdl-table default column sort
vdl-table is sorted ascending by the first column by default and the user can easily change this by clicking the column they want to sort by, but how can I change the default sort so all users initia...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Comments