Skip to content

Commit

Permalink
feat: new draft chapter on CP-SAT vs ML vs QC. feat: Added reference …
Browse files Browse the repository at this point in the history
…to streamlit applet
  • Loading branch information
d-krupke committed Jan 3, 2025
1 parent b288da8 commit f37be44
Show file tree
Hide file tree
Showing 7 changed files with 852 additions and 1 deletion.
1 change: 1 addition & 0 deletions .mdbook/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

- [Coding Patterns](./06_coding_patterns.md)
- [(DRAFT) Building an Optimization API](./building_an_optimization_api.md)
- [(DRAFT) CP-SAT vs. ML vs. Quantum](./chapters/machine_learning.md)
- [Large Neighborhood Search](./09_lns.md)
- [Benchmarking your Model](./08_benchmarking.md)
4 changes: 4 additions & 0 deletions 06_coding_patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,8 @@ signals while the solver is running.
| :----------------------------------------------------------------------------------------------------------------------------------------: |
| _Using multiprocessing, one can build a responsive interface for a solver._ |

[@oulianov](https://github.com/oulianov) deployed it
[here](https://cpsat-embeddings-demo.streamlit.app/) for you to try out in you
browser.

---
426 changes: 426 additions & 0 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def convert_for_readme(content: str) -> str:
"03_big_picture.md",
"06_coding_patterns.md",
"building_an_optimization_api.md",
"chapters/machine_learning.md",
"08_benchmarking.md",
"09_lns.md",
]
Expand All @@ -289,6 +290,6 @@ def convert_for_readme(content: str) -> str:
f.write(f"<!-- {file} -->\n")
f.write(convert_for_readme(content))
f.write("\n\n")
Path("./.mdbook/").mkdir(parents=True, exist_ok=True)
(Path("./.mdbook/") / file).parent.mkdir(parents=True, exist_ok=True)
with open(Path("./.mdbook/") / file, "w") as book_file:
book_file.write(convert_for_mdbook(content))
419 changes: 419 additions & 0 deletions chapters/machine_learning.md

Large diffs are not rendered by default.

Binary file added images/chatgpt-knapsack_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/chatgpt-knapsack_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f37be44

Please sign in to comment.