-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9efb7b
commit ebfb747
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|