Skip to content

Commit

Permalink
Correct function name mistakes (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlezXue authored Sep 13, 2023
1 parent 0b6d7c5 commit eedd128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how_to_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit eedd128

Please sign in to comment.