Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Feb 21, 2021
1 parent dfa591e commit 4e29eda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ set_silent(model)

fix(x[1, 1], 1; force = true)

#The total population of a group $k$ is $Q_k = \sum_ix_{i,k}q_i$ where $q_i$ is
# The total population of a group $k$ is $Q_k = \sum_ix_{i,k}q_i$ where $q_i$ is
# simply the $i$th value from the `population` column in our `cities` DataFrame.
# Let's add constraints so that $\alpha \leq (Q_k - P) \leq \beta$. We'll set
# $\alpha$ equal to $-3$ million and $\beta$ equal to $3$. By adjusting
Expand Down
13 changes: 8 additions & 5 deletions docs/src/tutorials/Mixed-integer linear programs/sudoku.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
# * The numbers 1 to 9 must appear in each column

# Here is a partially solved Sudoku problem:
# ![Partially solved Sudoku](/assets/partial_sudoku.svg")

# This isn't an optimization problem, its actually a *feasibility* problem: we
# wish to find a feasible solution that satsifies these rules. You can think of
# it as an optimization problem with an objective of 0.
# ![Partially solved Sudoku](../../assets/partial_sudoku.svg)

# Solving a Sudoku isn't an optimization problem with an objective; its actually
# a *feasibility* problem: we wish to find a feasible solution that satsifies
# these rules. You can think of it as an optimization problem with an objective
# of 0.
#
# We can model this problem using 0-1 integer programming: a problem where all
# the decision variables are binary. We'll use JuMP to create the model, and
Expand Down Expand Up @@ -150,4 +152,5 @@ end
sol

# Which is the correct solution:
# ![Solved Sudoku](/assets/full_sudoku.svg")

# ![Solved Sudoku](../../assets/full_sudoku.svg)

0 comments on commit 4e29eda

Please sign in to comment.