50 likes | 188 Views
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
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