I have written my optimization problem in zimpl and used SCIP to solve it. One of my constraint is
x'Qx<=0.05(portfolio risk <=0.05)
where x
is n*1
vector and Q
is the n*n
covariance matrix. Currently I am reading my covariance matrix from a txt file and it's quite large (3000*3000), I used something like param[I]=read "cov.txt"
.
When I use SCIP to read the zpl file, the parsing takes a long time. I am just wondering is there a better way to load the data into my problem? Do I have to pass values to the parameters in the zimpl model through a file (disk IO) or can I use memory to pass the values?