Some background information:
We use linear programming (scip/ZIMPL) to solve a optimization problem
As a result variables have subscripts in the mathematical formulation
Currently using mySQL/HeidiSQL for database/interface
Currently we take the variables (constraints) and put them into indexes which are individual columns in a table.
i.e. variable "v" is index01, which refers to timeperiods, index02 refers to centralinventories
However currently only 6 indexes/columns are created - although there are no variables with 6 subscripts (indexes), some do have rows with more than 6 indexes.
Yes we could do a quick fix and double the number of indexes, but that isn't the long term solution
How do we map the the subscripts outputted by zimpl/scip back to the original meaningful variable names without creating a new column for each variable?