modelFirstOrderExperiment"Defining experimental conditions"Realx"State variable";initialequationx=2"Used before simulation to compute initial values";equationder(x)=1-x"Drives value of x toward 1.0";annotation(experiment(StartTime=0,StopTime=8));endFirstOrderExperiment;
在此,“MyWidget”模型包含有 HTML 文档。该文档被包裹在
<html> 标签内,用于定义属性的所有引号都通过“进行转义,以避免意外地终止信息字符串。
实验
类型:模型标注
实验注释用于说明关于如何对某一模型进行模拟的相关信息。该注释数据可以以记录形式呈现如下:
recordexperimentRealStartTime"Time at which the simulation should start";RealStopTime"Time at which the simulation should stop";RealInterval(min=0)"Time interval between results";RealTolerance(min=0)"Solver tolerance to use";endexperiment;