diff --git a/README.md b/README.md index 9cdebc5e..42b7ff57 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,3 @@ - - ![jMetalPy](source/jmetalpy.png) [![Build Status](https://img.shields.io/travis/jMetal/jMetalPy/master.svg?style=flat-square)](https://travis-ci.org/jMetal/jMetalPy) @@ -95,6 +87,17 @@ print_function_values_to_file(front, 'FUN.NSGAII.ZDT1') print_variables_to_file(front, 'VAR.NSGAII.ZDT1') ``` +Or visualize the Pareto front approximation produced by the algorithm: + +```python +from jmetal.lab.visualization import Plot + +plot_front = Plot(title='Pareto front approximation', axis_labels=['x', 'y']) +plot_front.plot(front, label='NSGAII-ZDT1', filename='NSGAII-ZDT1', format='png') +``` + +Pareto front approximation + ## Features The current release of jMetalPy (v1.5.3) contains the following components: diff --git a/source/_static/NSGAII-ZDT1.png b/source/_static/NSGAII-ZDT1.png new file mode 100644 index 00000000..0674a921 Binary files /dev/null and b/source/_static/NSGAII-ZDT1.png differ