    001package org.cpsolver.ifs.algorithms.neighbourhoods;
    002
    003import org.cpsolver.ifs.heuristics.NeighbourSelection;
    004
    005/**
    006 * This interface may be implemented by a {@link NeighbourSelection} to indicate that it is employed by a hill climber.
    007 * <br>
    008 *
    009 * @author  Tomáš Müller
    010 * @version IFS 1.3 (Iterative Forward Search)<br>
    011 *          Copyright (C) 2014 Tomáš Müller<br>
    012 *          <a href="mailto:muller@unitime.org">muller@unitime.org</a><br>
    013 *          <a href="http://muller.unitime.org">http://muller.unitime.org</a><br>
    014 * <br>
    015 *          This library is free software; you can redistribute it and/or modify
    016 *          it under the terms of the GNU Lesser General Public License as
    017 *          published by the Free Software Foundation; either version 3 of the
    018 *          License, or (at your option) any later version. <br>
    019 * <br>
    020 *          This library is distributed in the hope that it will be useful, but
    021 *          WITHOUT ANY WARRANTY; without even the implied warranty of
    022 *          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    023 *          Lesser General Public License for more details. <br>
    024 * <br>
    025 *          You should have received a copy of the GNU Lesser General Public
    026 *          License along with this library; if not see
    027 *          <a href='http://www.gnu.org/licenses/'>http://www.gnu.org/licenses/</a>.
    028 **/
    029public interface HillClimberSelection {
    030
    031    /**
    032     * True if employed by a hill climber, e.g., worsening moves may be skipped.
    033     * @param hcMode true if used by a hill climber (worsening moves are automatically discarded)
    034     */
    035    public void setHcMode(boolean hcMode);
    036}