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

org.aiddl.common.scala.reasoning.constraint.AllDifferentConstraint.scala Maven / Gradle / Ivy

Go to download

Provides common types and algorithm implementations for the fast prototyping integrative AI systems with the AIDDL framework.

The newest version!
package org.aiddl.common.scala.reasoning.constraint

import org.aiddl.core.scala.function.Function
import org.aiddl.core.scala.representation.*

class AllDifferentConstraint(n: Int) extends Function {
  override def apply(x: Term): Term =
    Bool(x.asTup.toSet.size == n)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy