Skip to content
Snippets Groups Projects
  • awenjb's avatar
    ec1781da
    Fix some issues · ec1781da
    awenjb authored
    - init the solution with one empty road
    - fix bug while init Data
    - some tests in the main
    ec1781da
    History
    Fix some issues
    awenjb authored
    - init the solution with one empty road
    - fix bug while init Data
    - some tests in the main
insert_route.h 508 B
#pragma once

#include "lns/modification/atomic_recreation.h"
#include "lns/solution/solution.h"
#include "input/location.h"

/**
 * Insert a new empty route in the solution
 * Do not cost anything
 */
class InsertRoute : public AtomicRecreation
{

public:
    InsertRoute();

    void modifySolution(Solution &solution) override;
    double evaluate(Solution const &solution) const override;
    Pair const *getAddedPairs() const override;

    ModificationCheckVariant asCheckVariant() const override;
};