AnsweredAssumed Answered

Parallel processing in Xpress

Question asked by brigatto@ele.puc-rio.br on Dec 15, 2015
Latest reply on Dec 21, 2015 by brigatto@ele.puc-rio.br

Hi everyone!

 

I am trying to run submodels in parallel in xpress and I am experiencing a few issues.

 

1 - Can I define a constant value of a submodel with a command line: for instance: run(myMod,t=2)?

 

-------------------

 

2 - I am trying to share memory from a subproblem "s" as follows:

initializations to "bin:shmem:output" + s

     output

end-initializations.

But when I try to read this memory from my master problem as

initializations from "bin:shmem:output" + s

     output

end-initializations.

 

I get an error mesage: Mosel: E-22: I cannot open file `shmem:output1' for reading (file not found).

 

------------------------

 

3 - If I try to share results with txt files, it works for most of the time but from time to time I also get an error mesage E-22 for the text file. I know that this is probably an issue of more than one parallel procedure trying to assess the same file, but I though my code could handle this:

 

initializations to 'submodel_input.txt'

     t s

end-initilizations

 

forall s in submodelsSet do

     run(submodel)****

end-do

 

forall s in submodelsSet do

     wait

end-do

 

forall s in submodelsSet do

     initializations from 'submodel_output' + s + '.txt'

          output

     end-initializations

end-do

 

****Inside of each submodel I write the output as follows

     initializations to 'submodel_output' + s + '.txt'

          output

     end-initializations

 

------

 

Could someone please help me with these issues?

 

All the best

 

Arthur.

Outcomes