Patent ID: 8046202

Claim:
In a graphical modeling environment, a method comprising: converting, using a processor, a model of a system to a first intermediate representation that captures one or more operations associated with the model; converting the first intermediate representation into a second intermediate representation that is capable of being executed by a simulator, the first intermediate representation, the second intermediate representation, and the model being different representations of the system, the converting of the first intermediate representation into the second intermediate representation including: identifying one or more operations captured in the first intermediate representation that are not supported by the simulator, converting the identified one or more operations not supported by the simulator into one or more operations that are supported by the simulator, and capturing the converted one or more operations in the second intermediate representation; analyzing, using a dispatcher, the second intermediate representation to identify one or more operations and replacing the identified one or more operations with one or more operations selected to achieve a desired objective; and simulating the model by executing the second intermediate representation using the simulator.