Multi-Objective MAP-Elites ========================== Minimise two costs, ``x**2`` and ``(1-x)**2``, while filling cells along a separate descriptor. Moving ``x`` towards zero improves the first cost, and moving it towards one improves the second. In each cell :class:`qdpy.algorithms.MOME` keeps a set of nondominated alternatives in a :class:`qdpy.containers.ParetoGrid`. Run from the repository root after installing the :ref:`base package `. .. code-block:: shell python examples/mome.py .. literalinclude:: ../examples/mome.py :language: python The example sets a capacity of five solutions per cell and gives both objectives a negative weight for minimisation. A candidate enters its cell's front if no member improves on one of its costs without worsening the other. If a front exceeds capacity, the archive samples a uniform subset to keep. Parent selection for Iso+LineDD first draws an occupied cell uniformly and then draws a member of its front. Inspect ``grid.front(cell)`` to read the alternatives in one niche. The sorted cost pairs show how one objective improves as the other worsens. Use a positive weight for a maximisation objective and return its raw value from the evaluator. For two objectives, pass a reference in raw objective units that is at least as bad in both objectives as every scored solution. Here ``(1.0, 1.0)`` is valid because both costs lie in the unit interval. ``cell_hypervolume`` measures one front, ``qd_hypervolume`` adds the cell volumes, and ``global_hypervolume`` measures the union across all cells. Use the same reference point for each run you compare. The two-method walkthrough saves and reloads a ``ParetoGrid``, checks its hypervolume, and plots its occupancy. See :doc:`choose_algorithm`. Use :func:`qdpy.checkpoints.run_checkpointed` to continue a MOME search from a completed batch and restore its Pareto fronts in their original order. See :doc:`run_results` for the restart example. See `Pierrot et al. (2022) `__.