I want to simulate robots looking for food in an unknown 2D environment. The idea is to make them evolve with genetic algorithms. The robots have some captors to see forward and motors to move. There are some food sources on the surface of the 2D environment.
我计划使用 Qt 进行图形模拟,使用 类 < code\ graphicsSceen 和 。
我的问题是:当我要运行数百次模拟(遗传算法)时,我只想显示最后的迭代,并隐藏所有以前的迭代。 能否只为此使用 < code> graphicsSceen ? 如果没有 graphicsView
, 除了最后一次迭代之外? 最重要的是, 它是否有效?