AmesimKnowledge

Simple examples

Design Exploration study

Simple example

Proceed as follows to execute this simple example:

Procedure

  1. In Simcenter Amesim, use Help > Get demo to load the Robustness_Monte_Carlo.ame demo model:

  2. Start a Python console using Tools > Python command interpreter....

Warning You should ensure that model is in its expanded state if you load the Design Exploration API from a python console launched from outside Simcenter Amesim (you can right-click on the model and select Explode).

  1. Follow the sequence of steps as provided in the script.

Below, we present a sample script for running a design exploration study and getting results. Copyimport ame_DE_apy from ame_DE_apy import * ms=DE.get_model_studies(r'E:\UserData\Amesim\Test\ Robustness_Monte_Carlo.ame')   print ('\n-------getting study NLPQL-------') study=ms.get_study('Robustness1', Study.study_type.MC) print (study)   print ('\n-------get available algorithm-------') algo_list=study.get_available_algorithms() print (algo_list)   print ('\n-------Set new algorithm-------') new_algo=study.set_algorithm(Algorithm.algorithm_type.Random) print (new_algo)   print ('\n-------get properties of the algorithm-------') property_list=new_algo.get_properties() print (property_list)     print ('\n-------set the property for the algorithm-------') is_algo_prop_set=new_algo.set_property(Algorithm.algorithm_property. No_Of_Runs, '12') print (is_algo_prop_set)   print ('\n-------get parameter diamA-------') param=study.get_parameters()[0] print (param)   print ('\n-------check if the parameter is output-------') print (param.is_output())   print ('\n-------change the property of the parameter : Mean_Value = 0.25-------') is_prop_set=param.set_property(Parameter.parameter_property.Mean_Value, '0.25') print (is_prop_set)   print ('\n-------change the property of the parameter : Distribution = Gaussian-------') is_prop_set=param.set_property(Parameter.parameter_property.Distribution, 'Gaussian') print (is_prop_set)   ms.save_studies() print ('\n-------Run the study-------') study.run() print ('\n-------Get the result of the study-------') result=study.get_result() print (result)   print ('\n-------check if the result is available-------') is_avble=result.is_available() print (is_avble)   print ('\n-------Get number of runs-------') total=result.get_nb_runs() print (total)     print ('\n-------Check all the Stat_Mean_Value-------') print (result.get_property(Result.result_property.Stat_Mean_Value))   print ('\n-------Check Stat_Kurtosis value for the parameter \'diamA\ '-------') print (result.get_property_parameter(Result.result_property.Stat_Kurtosis, 'diamA')) ms.save_studies()

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Scripting/Simple_example · retrieved 2026-07-17