16 lines
416 B
Python
16 lines
416 B
Python
from __future__ import annotations
|
|
|
|
from .solver import reference_scenario
|
|
|
|
|
|
def main() -> None:
|
|
solution = reference_scenario()
|
|
print(f"Consensus: {solution.consensus:.3f}")
|
|
print(f"Iterations: {solution.certificate.iterations}")
|
|
for robot in solution.robots:
|
|
print(f"{robot.robot_id}: pos={robot.current_pos:.3f} travel={robot.travel_distance:.3f}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|