Skip to content

Commit

Permalink
Merge 78b0cc0 into 2e2937a
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitRathore1 committed Jun 29, 2020
2 parents 2e2937a + 78b0cc0 commit 90313a9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/src/LinearSurrogate.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
## Linear Surrogate
Linear Surrogate is a linear approach to modeling the relationship between a scalar response or dependent variable and one or more explanatory variables. We will use Linear Surrogate to optimize **Eggholder Function**:
Linear Surrogate is a linear approach to modeling the relationship between a scalar response or dependent variable and one or more explanatory variables. We will use Linear Surrogate to optimize **Eggholder Function** [function](http://infinity77.net/global_optimization/test_functions.html#test-functions-index.):

f_{\text{EggHolder}}(\mathbf{x}) = - x_{1} \sin\left(\sqrt{\lvert{x_{1} - x_{2} -47}\rvert}\right) - \left(x_{2} + 47\right) \sin\left(\sqrt{\left|{\frac{1}{2} x_{1} + x_{2} + 47}\right|}\right)

[function from](http://infinity77.net/global_optimization/test_functions.html#test-functions-index.)
$f(x) = - x_{1} \sin\left(\sqrt{\lvert{x_{1} - x_{2} -47}\rvert}\right) - \left(x_{2} + 47\right) \sin\left(\sqrt{\left|{\frac{1}{2} x_{1} + x_{2} + 47}\right|}\right)$.

First of all we have to import these two packages: `Surrogates` and `Plots`.

```@example linear_surrogate1D
using Surrogates, Plots
default()
using Surrogates
using Plots
```

### Sampling
Expand Down

0 comments on commit 90313a9

Please sign in to comment.