Skip to content

Commit

Permalink
update examples and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoleilhac committed Oct 31, 2020
1 parent eb349ff commit e5311cc
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,7 @@ os:
- linux
julia:
- 1.0
- 1.3
- 1.5
- nightly
notifications:
email: false
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
@@ -1,3 +1,2 @@
{
"julia.environmentPath": "C:\\Users\\Gauthier\\.julia\\environments\\v1.4"
}
Binary file removed MOP7.gif
Binary file not shown.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -161,14 +161,14 @@ You can use `BinaryCoding(ϵ::Int, lb::Vector, ub::Vector)` to encode real varia

Example : MOP7 from Van Valedhuizen’s Test Suite

![MOP7](https://raw.githubusercontent.com/gsoleilhac/NSGAII.jl/master/MOP7.png "MOP7")
![MOP7](https://raw.githubusercontent.com/gsoleilhac/NSGAII.jl/master/examples/MOP7.png "MOP7")

```julia
using NSGAII
using Plots: scatter3d

f1(x1,x2) = ((x1-1)^2)/2 + ((x2+1)^2)/13 + 3
f2(x1,x2) = ((x1+x2-3)^2)/2 + ((-x1+x2+2)^2)/8 - 17
f1(x1,x2) = ((x1-2)^2)/2 + ((x2+1)^2)/13 + 3
f2(x1,x2) = ((x1+x2-3)^2)/36 + ((-x1+x2+2)^2)/8 - 17
f3(x1,x2) = ((x1+2x2-1)^2)/175 + ((-x1+2x2)^2)/17 - 13

z(x) = f1(x[1], x[2]), f2(x[1], x[2]), f3(x[1], x[2])
Expand All @@ -186,7 +186,7 @@ nsga(500, 100, z, bc, seed = [[1.,-1.],[2.5,0.5],[0.5,0.25]], fplot = plot_pop)
```

<p align="center">
<img width="460" height="300" src="https://raw.githubusercontent.com/gsoleilhac/NSGAII.jl/master/MOP7.gif">
<img width="460" height="300" src="https://raw.githubusercontent.com/gsoleilhac/NSGAII.jl/master/examples/MOP7.gif">
</p>

* The initialization function isn't needed anymore.
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
@@ -1,7 +1,7 @@
environment:
matrix:
- julia_version: 1.0
- julia_version: 1.3
- julia_version: 1.5
- julia_version: nightly

## uncomment the following lines to allow failures on nightly julia
Expand Down
Binary file added examples/MOP7.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit e5311cc

Please sign in to comment.