Thank you for sharing your code! While studying and running the "mainFSM_run.m" file, I encountered an error after setting runType = "SR";:
MATLAB show that in the functon 'function obj = stateChecker_One(obj, M)', it has the problem: Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL function to reduce operands to logical scalar values.
I'm confused whether this runType mode supports only a single agent's search operation, or if it requires all agents to be in the same state.
Additionally, if I want to run simulations for multiple agents in the runType = "SR" mode, could you provide the corresponding function function obj = stateChecker_One(obj, M) to help resolve this issue?
Thank you very much!