对状态方程参数的确定问题,提出了基于Spark的变化搜索空间的并行遗传算法。把参数确定问题转化为函数最优化问题,可以使用遗传算法求解。通过将遗传算法与Spark相结合,加快算法的计算速度。在此基础上开发了基于Spark的并行遗传算法程序,数值实验表明算法可以用来解决状态方程中参数的确定问题,且实验所得结果的精度只与实验数据的精度有关。同时实验数据表明并行的遗传算法不仅可以加快计算速度还可以提高结果的精度和稳定性。
To determine the parameters of the equation of state,a parallel genetic algorithm based on Spark with changing search space is proposed. The problem of parameter optimization is transformed into function optimization problem,so that genetic algorithm can be used to solve the problem. By combining the genetic algorithm with Spark,the speed of the algorithm is accelerated. On the basis of this,a parallel genetic algorithm program based on Spark is developed. Numerical experiments show that the algorithm can be used to solve the problem of parameter determination in equation of state,and the accuracy of the experimental results is only related to the accuracy of experimental data. At the same time,the experimental data show that the parallel genetic algorithm can not only speed up the calculation speed but also improve the accuracy and stability of the results.