Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RXGottlieb committed Jun 12, 2023
1 parent b2a09dd commit 9a30fc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ In order to bound a function using a McCormick relaxation, you first construct a
structure that bounds the input variables and then you pass these variables
to a function.

In the example below, convex/concave relaxations of the function `f(x) = sin(2x) + exp(x) - x`
are calculated at `x = 1` on the interval `[-2,3]`.
In the example below, convex/concave relaxations of the function `f(x) = x * (x-5.0) * sin(x)`
are calculated at `x = 2` on the interval `[1,4]`.

```julia
using McCormick

# create MC object for x = 2.0 on [1.0,3.0] for relaxing
# create MC object for x = 2.0 on [1.0,4.0] for relaxing
# a function f(x) on the interval Intv

f(x) = x*(x-5.0)*sin(x)
Expand Down

0 comments on commit 9a30fc3

Please sign in to comment.