Advanced examples
Response surface modeling
Two functions are provided to read and use the Response Surface Model files generated by the Design Exploration tool:
the amersmreadrsm function reads an RSM file, selects one particular response and returns it as a matrix or vector, depending on the order of the RSM,
the amersmcreatevec function helps to evaluate the RSM at a specified point, by creating the vector of all the values of the variables raised to the power up to the required order.
A first or second order RSM is represented by the matrix of the corresponding quadratic form, whereas a third or higher order RSM is represented by a vector of polynomial coefficients. See the manual chapter on the Design Exploration tool for more details.
We will create a simple RSM of one input variable and one output variable to illustrate the use of these functions.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Scripting/Using_Response_Surface_Models · retrieved 2026-07-17