brigatto@ele.puc-rio.br

Reading input file line by line in Xpress

Discussion created by brigatto@ele.puc-rio.br on Aug 26, 2016
Latest reply on Aug 30, 2016 by brigatto@ele.puc-rio.br


I am trying to iteratively solve a given model as follows

 

forall(c in 1..|C|) do

     min_x {c'x | A(c)x=b}

end-do

 

where A(c) is a single line of the matrix A. Matriz A can be huge and I have found out that just by loading it, the entire solving process is slowed down considerably. So what I am trying to do is instead of initializing the whole matrix, I am trying to read line by line and solving the model with it. 

 

I have tried using fopen and read/readln commands but without any success.

 

Any thoughts?

 

Thank you very much

Outcomes