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

org.xcsp.modeler.problems.Pic Maven / Gradle / Ivy

Go to download

Java Tools for parsing XCSP3 instances, compiling JvCSP3 models, and checking solutions. For more information about XCSP3, follow www.xcsp.org

The newest version!
/**
 * AbsCon - Copyright (c) 2017, CRIL-CNRS - [email protected]
 * 
 * All rights reserved.
 * 
 * This program and the accompanying materials are made available under the terms of the CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL which accompanies this
 * distribution, and is available at http://www.cecill.info
 */
package org.xcsp.modeler.problems;

import org.xcsp.common.IVar.VarSymbolic;
import org.xcsp.modeler.api.ProblemAPI;

public class Pic implements ProblemAPI {

	@Override
	public void model() {
		VarSymbolic x = var("x", dom("a", "b"));
		VarSymbolic y = var("y", dom("a", "b"));
		VarSymbolic z = var("z", dom("a", "b"));

		extension(vars(x, y), tableSymbolic("(a,a)(b,b)"));
		extension(vars(x, z), tableSymbolic("(a,a)(b,b)"));
		extension(vars(y, z), tableSymbolic("(a,b)(b,a)"));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy