Knowledge-based simulation