All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.chocosolver.solver.constraints.PropagatorPriority Maven / Gradle / Ivy

There is a newer version: 4.10.17
Show newest version
/*
 * This file is part of choco-solver, http://choco-solver.org/
 *
 * Copyright (c) 2019, IMT Atlantique. All rights reserved.
 *
 * Licensed under the BSD 4-clause license.
 *
 * See LICENSE file in the project root for full license information.
 */
package org.chocosolver.solver.constraints;

/**
 * 
* * @author Charles Prud'homme * @since 11 aug. 2010 */ public enum PropagatorPriority { UNARY(1), BINARY(2), TERNARY(3), LINEAR(4), QUADRATIC(5), CUBIC(6), VERY_SLOW(7);// 8 = PROPAGATE; public final int priority; PropagatorPriority(int prio) { this.priority = prio; } public static PropagatorPriority get(int prio) { switch (prio) { case 1: return UNARY; case 2: return BINARY; case 3: return TERNARY; case 4: return LINEAR; case 5: return QUADRATIC; case 6: return CUBIC; case 7: return VERY_SLOW; default: return VERY_SLOW; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy