Skip to content

Commit

Permalink
Fix docstrings, CSP example
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Wouda committed Jul 29, 2019
1 parent 372402d commit 563b3c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions alns/criteria/SimulatedAnnealing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class SimulatedAnnealing(AcceptanceCriterion):
def __init__(self, start_temperature, end_temperature, step,
method="linear"):
"""
Linear simulated annealing, using an updating temperature. The
temperature is updated as,
Simulated annealing, using an updating temperature. The temperature is
updated as,
``temperature = max(end_temperature, temperature - step)`` (linear)
Expand Down
2 changes: 0 additions & 2 deletions examples/cutting_stock_problem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@
" return sum(state.assignments[idx]) + beam\n",
"\n",
" def wastage(idx, beam): # helper method for min\n",
" potential_usage = usage_after_insert(idx, beam)\n",
"\n",
" if usage_after_insert(idx, beam) > BEAM_LENGTH:\n",
" return float(\"inf\")\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MAJOR = 1
MINOR = 0
MAINTENANCE = 2
MAINTENANCE = 3
MODIFIER = ""

VERSION = "{0}.{1}.{2}{3}".format(MAJOR, MINOR, MAINTENANCE, MODIFIER)
Expand Down

0 comments on commit 563b3c6

Please sign in to comment.