From eedd128bf2c59bd42f033e23e0ccef05d139d4ec Mon Sep 17 00:00:00 2001 From: CharlezXue <36230781+CharlezXue@users.noreply.github.com> Date: Thu, 14 Sep 2023 02:58:04 +0800 Subject: [PATCH] Correct function name mistakes (#410) --- docs/how_to_debug.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/how_to_debug.md b/docs/how_to_debug.md index 11a8b1878..27dd73724 100644 --- a/docs/how_to_debug.md +++ b/docs/how_to_debug.md @@ -68,7 +68,7 @@ If that does not help, try printing the 'transformed' **constraints**, the way t ```python s = SolverLookup.get("ortools") # or whatever solver you are using -print(s.tranform(model.constraints)) +print(s.transform(model.constraints)) ``` Note that you can also print individual expressions like this, e.g. `print(s.transform(expression))` which helps to zoom in on the curlpit. @@ -77,7 +77,7 @@ If you want to know about the **variable domains** as well, to see whether somet ```python s = SolverLookup.get("ortools") # or whatever solver you are using -ct = s.tranform(model.constraints) +ct = s.transform(model.constraints) from cpmpy.transformations.get_variables import print_variables print_variables(ct) print(ct)