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

javax.constraints.VarMatrix Maven / Gradle / Ivy

Go to download

JCP Standard JSR331 “Java Constraint Programming API”. It is used for Modeling and Solving Constraint Satisfaction and Optimization Problems using Java and off-the-shelf Constraint/Linear Solvers

There is a newer version: 2.3.1
Show newest version
package javax.constraints;

/**
 * A VarMatrix is a two-dimensional array of Var objects
 *
 */

public interface VarMatrix {
	
	public int numberOfRows();
	
	public int numberOfColumns();
	
	public Var[] row(int i);
	
	public Var[] column(int j);
	
	public Var[] flat();
	
	public Var[] diagonal1();
	
	public Var[] diagonal2();
	
	public Var get(int i,int j);
	
	public void post(int[][] data);
	
	public void post(int i, int j, int value);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy