File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ you want to have it added here, please open an issue.
119119Technical Notes
120120------ -
121121
122+ ** Coordinate scaling:** Concorde computes distances using integer arithmetic.
123+ If your coordinates are small (e.g. in [0 , 1 ]), distances between points will
124+ be rounded to 0 , leading to incorrect results or crashes. Scale your
125+ coordinates up before passing them to the solver — for example, multiply by
126+ 1e6 . Similarly, very large coordinates (above 1e7 ) may cause integer overflow.
127+ See `examples/ truncation_demo.py` for a demonstration.
128+
122129PyConcorde needs Concorde and QSOpt. Downloading and building these packages
123130should happen automatically on Linux/ Mac OS , but please file an issue if you
124131experience any trouble during this step.
You can’t perform that action at this time.
0 commit comments