摘要:
基于面向服务的开放式软件平台SiPESC,引进流行的用于描述数学符号结构和内容的MathML语言,实现了一种通用脚本语言表示代理模型构架.该构架的核心思想是使用MathML描述各种代理模型(如径向基函数、响应面、Kriging等)函数表达式结果,方便以文本形式表示和保存,并使用工厂设计模式管理各种脚本(如JavaScript、Python、Matlab等)的转换工具,实现MathML数据到脚本的灵活转换.采用MathML可以提高代理模型结果表达的通用性,而工厂设计模式可以提高转换工具的灵活性,使其能适用于不同工程和研究.实践表明,该构架可提高代理模型结果表示、查看和使用的效率,为工程中的优化、近似模拟、快速显示提供便利.%Based on the service-oriented open software platform SiPESC and popular mathematical notations, structure and content descripting markup language MathML, a general framework for expressing result of surrogate model in popular scripting languages is generated.The core idea of the framework is that MathML elements are used to express the result of surrogate model, such as RBF, RSM, Kriging, so that the result can be saved as text.Besides, the abstract factory design patterns are adopted to manage the extensions for the expression tool of scripting languages, such as JavaScript, Python, Matlab, which can flexibly convert the MathML data into scripting languages.The technology of MathML makes the expression of surrogate model in a more general way, while the abstract factory design patterns make the extension tools flexible, so that the developed tools can be used in engineering and scientific research.The practices indicate that the efficiency in expression, inspection and usage for surrogate model can be largely improved by using the proposed framework, and a great convenience is provided for the engineering optimization, approximate analysis and rapid visualization etc..