Skip to content

Commit

Permalink
Merge pull request #56 from adavidzh/patch-1
Browse files Browse the repository at this point in the history
Fix small typo in README.md
  • Loading branch information
SimonBlanke committed Sep 18, 2022
2 parents b7cc392 + d497bf3 commit 4565c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ corresponding iteration.
def objective_function(opt):
# get x1 and x2 from the argument "opt"
x1 = opt["x1"]
x2 = opt["x1"]
x2 = opt["x2"]

# calculate the score with the parameter set
score = -(x1 * x1 + x2 * x2)
Expand All @@ -639,7 +639,7 @@ The objective function always needs a score, which shows how "good" or "bad" the
```python
def objective_function(opt):
x1 = opt["x1"]
x2 = opt["x1"]
x2 = opt["x2"]

score = -(x1 * x1 + x2 * x2)

Expand Down

0 comments on commit 4565c7c

Please sign in to comment.