Skip to content

Commit ef6967e

Browse files
authored
Update README.md
1 parent 68c91b7 commit ef6967e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ MOI.set.( # set pertubations / gradient inputs
5858
```julia
5959
DiffOpt.backward(model) # differentiate
6060

61-
grad_exp = MOI.get( # -3x+1
61+
grad_exp = MOI.get( # -3 x - 1
6262
model,
6363
DiffOpt.BackwardOutConstraint(),
6464
cons
6565
)
66-
JuMP.constant(grad_exp) # 1
66+
JuMP.constant(grad_exp) # -1
6767
JuMP.coefficient(grad_exp, x) # -3
6868
```
6969

@@ -95,4 +95,4 @@ grads = backward(diff, dA, db, dc)
9595

9696
## Note
9797

98-
- DiffOpt began as a [NumFOCUS sponsored Google Summer of Code (2020) project](https://summerofcode.withgoogle.com/organizations/4727917315096576/?sp-page=2#5232064888045568)
98+
- DiffOpt began as a [NumFOCUS sponsored Google Summer of Code (2020) project](https://summerofcode.withgoogle.com/organizations/4727917315096576/?sp-page=2#5232064888045568)

0 commit comments

Comments
 (0)