Solving Missionaries and Cannibals Problem with Simulink Design Verifier

バージョン 1.1.0.0 (33.7 KB) 作成者: Mikhail
Missionaries and Cannibals Problem solved with Simulink Design Verifier (and simple visualization)
ダウンロード: 178
更新 2017/1/23

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

The missionaries and cannibals problem is one of the classic river-crossing problems.
Three missionaries and three cannibals must cross a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were, the cannibals would eat the missionaries). The boat cannot cross the river by itself with no people on board.
https://en.wikipedia.org/wiki/Missionaries_and_cannibals_problem

You can use either property proving mode (to generate counter example) or test generation mode (to generate test case directly) of Simulink Design Verifier.

Also a simple script for visualization of results is provided. Cannibals are red squares, missionaries are green circles, the boat is a triangle.

引用

Mikhail (2024). Solving Missionaries and Cannibals Problem with Simulink Design Verifier (https://www.mathworks.com/matlabcentral/fileexchange/61198-solving-missionaries-and-cannibals-problem-with-simulink-design-verifier), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2016b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
謝辞

ヒントを得たファイル: Solving Ferryman Problem with Simuink Design Verifier

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Use one Scope block for better visualization
Slight update of description

1.0.0.0