Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Feb 17, 2015
1 parent 71b1f79 commit 68caecd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,22 @@ As a next step we generate an ecr *control object*, which holds all the neccessa
```splus
control = ecr.control(
population.size = 20L,
offspring.size =5L,
offspring.size = 5L,
representation = "float",
survival.strategy = "plus",
n.params = 1L,
mutator = list(gaussMutator),
mutator.control = list(mutator.gauss.sd = 0.005),
max.iter = 50L)
stoppingConditions = list(makeMaximumIterationsStoppingCondition(max.iter = 50L))
```

Now lets start the optimization process and print the result object, which contains the optimization trace, the best parameters, the best fitness value and some additional information.

```splus
set.seed(123)
result = ecr(obj.fun, control = control)
print(result)
res = ecr(obj.fun, control = control)
print(res)
print(autoplot(res))
```

Take a glance at the examples in the inst/examples directory.
Expand Down

0 comments on commit 68caecd

Please sign in to comment.