I want to paralelize a decomposition algorithm for optimization named Progressive Hedging. This optimization is stored on a function named PH which recieve arguments for the model, some arguments are matrix but PH needs just a vector from that matrix in this way.
for s = 1:nS
res = PH(k,s,data,Lines,Ag,Gx,Pmax[:,s],Prmax[:,s],COpe[:,s])
push!(data,res)
end
So PH needs just a vector from Pmax, Prmax and COpe.
To paralelize I try to do this.
pmap(s -> PH(k,s,data,Lines,Ag,Gx,Pmax[:,s],Prmax[:,s],COpe[:,]),1:nS)
But I get this:
The applicable method may be too new: running in world age 21846, while current world is 21965.
I'm using Julia 0.6 maybe the way i'm programming is from a older version.
Any idea?
PH
but we have no idea how you've definedPH
. – Chris Rackauckas