50 likes | 202 Vues
This guide provides a step-by-step construction and analysis of a model using the .CHARON toolkit, developed at the University of Pennsylvania. It covers starting a new project, writing and incorporating a model, and building a simple thermostat model with specific parameters. The documentation includes simulation and analysis techniques, reachability analysis, and conversion to flat models. By following these steps, users can effectively utilize the .CHARON toolkit to design and analyze their own models, enhancing their understanding of simulation processes.
E N D
CHARON toolkit overview DIVES Team University of Pennsylvania
Outline • Step-by-step construction and analysis of a model • Starting a project • Writing a model • Simulation and analysis • Overview of the V2V model
Starting a project • Select New Project from the File menu • Enter a name for the project directory • Directory thermostat • File thermostat.prj • Write the model in the editor, save in the project directory • Use Add Files from the Project menu to incorporate the model into the project • Use Build Model from the Project menu
Simple model: thermostat • Single agent (no concurrency) • Three modes • Two continuous variables • Parameters: low, high, ε initial values: temp = 5.5 clock = 0 heat temp ≥ high-ε cool d(temp) = 2 d(temp) = -temp temp ≤ low+ε temp≤high & clock ≤3 temp≥low clock ≥ 2 clock:=0 clock:=0 d(clock) = 1 check clock ≤ 0.5 d(temp) = -temp/2 clock ≤1
Model analysis • Simulation • Generate simulator (Simulate menu) • Configure simulation display (optional) • Start simulation • Reachability analysis • Convert to flat model (Check>Reachability>Convert menu) • Add initial region, “bad” region, and predicates • Start the reachability tool