casolution_parameters_3 for parallel accc
I am having the trouble that some contingencies diverge when performing accc. To try and counter this I tried changing so that the accc would use robust solve if the contingency diverged. I did this using the following line of code:
ierr = psspy.casolution_parameters_3([_i,_i,_i,_i,_i,_i,_i,1,_i,_i],[_f,_f,_f,_f,_f])
This works fine when using psspy.accc_with_dsp_3(0.5,[1,0,0,1,1,1,1,0,0,0,0],'',dfx_file,acc_file,'','','')
. The contingencies that previously diverged is no longer diverging.
However, when trying to call psspy.accc_parallel_2(0.5,[1,0,0,1,1,1,0,0,0,0,0],'',dfx_file,acc_file,'','','')
it ignors the changes made by psspy.casolution_parameters_3([_i,_i,_i,_i,_i,_i,_i,1,_i,_i],[_f,_f,_f,_f,_f])
. The code works fine otherwise but it does not try any robust solving. What am I missing? Is there another API than casolution_parameters_3()
that should be used when performing parallel computations or what am I getting wrong? I am sorry that I can not send the whole code but I hope that it is enough for anyone to acknowledge the problem.