Package solver.constraints.unary

Examples of solver.constraints.unary.PropLessOrEqualXC


      case GE: // X >= C
        return new PropGreaterOrEqualXC(var, cste);
      case GT: // X > C -->  X >= C + 1
        return new PropGreaterOrEqualXC(var, cste + 1);
      case LE: // X <= C
        return new PropLessOrEqualXC(var, cste);
      case LT: // X < C --> X <= C - 1
        return new PropLessOrEqualXC(var, cste - 1);
      default:
        throw new SolverException("Incorrect formula; operator should be one of those:{=, !=, >=, >, <=, <}");
    }
  }
View Full Code Here

TOP

Related Classes of solver.constraints.unary.PropLessOrEqualXC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.