From ebfb7471cfa4b539a327d9e7d67aa15943ddb2b2 Mon Sep 17 00:00:00 2001 From: Jian Wen Date: Tue, 2 Mar 2021 13:38:47 -0800 Subject: [PATCH] Update FAQ.md --- doc/FAQ.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/FAQ.md b/doc/FAQ.md index 8919f25..d5cb76d 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -1,15 +1,16 @@ ## Frequently Asked Questions -Q: How the simulation can be even faster? +### Q: How the simulation can be even faster? -A: First, for large scale simulations, please make sure to turn off both `output_datalog` and `render_video` flags in the platform config. Writing data (expecially those detailed ones for video rendering) to datalog can be very, very, very expensive. A couple of other options for speeding up simulation are: +First, for large scale simulations, please make sure to turn off both `output_datalog` and `render_video` flags in the platform config. Writing data (expecially those detailed ones for video rendering) to datalog can be very, very, very expensive. A couple of other options for speeding up simulation are: - use a larger cycle (a cycle defines the time interval between the periodic dispatching events). - use a smaller radius when searching for available vehicles to dispatch (TBD). Just keep in mind, when trading for speed, we are giving up a little bit of our accuracy and optimality. -Q: How can I suppress the verbose debugs? +### Q: How can I suppress the verbose debugs? `grep` is a helpful tool that searches for lines containing a match to the given strings or words. You can add `| grep [OPTIONS] PATTERN` to the simulation run to filter its output through piping. For example: - `grep "Vehicle #2"` will only keep the lines that contain string `Vehicle #2`. -- `grep -v [DEBUG]` will filter out all `DEBUG` lines. +- `grep -v [DEBUG]` will filter out all `DEBUG` lines. `-v` option is for invert match, i.e., it matches all the lines except the given pattern. +