Skip to content

Commit

Permalink
Further fixes in the html
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Jul 17, 2024
1 parent 1b0539a commit 8d63c50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 04_modelling.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Additional resources on mathematical modeling (not CP-SAT specific):
- [Absolute Values and Max/Min](#04-modelling-absmaxmin)
- [Multiplication, Division, and Modulo](#04-modelling-multdivmod)
- [AllDifferent](#04-modelling-alldifferent)
- [Domains and Combinations](04-modelling-table)
- [Domains and Combinations](#04-modelling-table)

---

Expand Down Expand Up @@ -920,7 +920,7 @@ space. This method effectively "hard-codes" these configurations, simplifying
the model by predefining which combinations of variables are permissible, much
like setting rules for employee shifts or resource allocations.

> [!INFO]
> [!NOTE]
>
> Hardcoding specific combinations in your model is a preliminary step toward
> advanced decomposition techniques like Dantzig-Wolfe decomposition. In this
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ Additional resources on mathematical modeling (not CP-SAT specific):
- [Absolute Values and Max/Min](#04-modelling-absmaxmin)
- [Multiplication, Division, and Modulo](#04-modelling-multdivmod)
- [AllDifferent](#04-modelling-alldifferent)
- [Domains and Combinations](04-modelling-table)
- [Domains and Combinations](#04-modelling-table)

---

Expand Down Expand Up @@ -1321,7 +1321,7 @@ space. This method effectively "hard-codes" these configurations, simplifying
the model by predefining which combinations of variables are permissible, much
like setting rules for employee shifts or resource allocations.

> [!INFO]
> [!NOTE]
>
> Hardcoding specific combinations in your model is a preliminary step toward
> advanced decomposition techniques like Dantzig-Wolfe decomposition. In this
Expand Down
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ def replace_tip_boxes(content):

def replace_info_boxes(content):
"""
An info box starts with `> [!INFO]` and ends with a line that does not start with `>`.
An info box starts with `> [!NOTE]` and ends with a line that does not start with `>`.
"""
lines = content.split("\n")
new_content = ""
collect_info = False
info_msg = ""
for line in lines:
if line.startswith("> [!INFO]"):
if line.startswith("> [!NOTE]"):
collect_info = True
info_msg += line[len("> [!INFO]") :] + "\n"
info_msg += line[len("> [!NOTE]") :] + "\n"
elif collect_info:
if line == ">":
continue
Expand Down

0 comments on commit 8d63c50

Please sign in to comment.