How to predict a future simulation state

We have a program that combines the simulation of an aircraft system and predefined pedagogical scenarios for trainee pilots to learn how to use this system.

When we follow the normal scenario, chapter after chapter, everything goes smoothly.

Now, when the trainee skips the chapter N and goes directly to the chapter N+1, the simulation goes snafu because the chapter N was not executed by the simulation, resulting in an incoherent state.

As a remedy, we write the desired simulation state in the scenario file, just after the chapter entry point.

The problem is it’s not possible to predict the simulation state for chapter N if we don’t know the scenario first by heart. And some scenarios are very complex. A developer has to spend a long time studying the scenario to get an accurate picture of what is expected by the trainee then he jumps to chapter N.

The software doesn’t need persistence. That is, we don’t have to save the simulation state when the program is not running.

The simulation state is managed by ~200 000 variables. It is not possible for us to make a snapshot of the simulation state at every step because it would be highly impracticable, and each time the scenario is updated, the snapshot would be out of date.

We also don’t have access externally to all variables since some are private and are out of bounds (And even if we had access, it would be a bad idea, given the sheer amount of data).

Is it a common problem and are there best practices and known solutions to tackle this issue ?

4

Run the simulator through every step to N+1, and then record the state. When you want to jump to N+1, just restore the state you recorded.

1

The simulation state is managed by ~200 000 variables. It is not
possible for us to make a snapshot of the simulation state at every
step because it would be highly impracticable, and each time the
scenario is updated, the snapshot would be out of date.

This sounds like a problem not only for running the simulation at a given chapter, but also for testing it. In order to test something you need to know the preconditions, i.e. the expected state at the beginning of the test. It’s not reasonable to expect programmers working on a system that involves 200,000 variables to correctly foresee every effect of changes they make on the system, so automated testing seems like an absolute requirement for something like this.

The software doesn’t need persistence. That is, we don’t have to save
the simulation state when the program is not running.

While it may not be a requirement that you be able to save the state of the simulator for each trainee, the fact that you’re asking this question indicates that you do, in fact, need to be able to save the state of the simulation at various points so that you can load specific configurations on demand. Again, this will not only solve your problem, but also pay dividends in terms of testing and debugging.

If you cannot reasonably save the actual state of the simulation, another option is to be able to record and play back user actions. This is really just another way to record state, but instead of recording the state of the system at a given time, you instead record all the steps that get you to that state. In a deterministic system the same series of inputs will always result in the same final state. This approach may have some advantages — since you’re not recording the actual state of the system, it doesn’t matter if the way the system is implemented changes; all that matters is that the actions expected of the user at each step don’t change. Also, the space needed to record the user’s actions might not be as great as that needed to record the total state of the system.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật