Problem running .bat file on Windows due to "input line is too long"

I'm using Windows and have a batch file (contents attached below) where I'm building up a classpath before trying to run a Java class. Unfortunately the classpath is fairly big and the file ends...

Input CNF for SAT4J solver

I a totally new to sat4j solver.. it says some cnf file should be given as input is there any possible way to give the rule as input and get whether it is satisfiable or not? my rule will be of...

Eclipse Indigo update/android-plugins update are not working

I want to setup my eclipse indigo IDE for android development. I use windows 7 32 bit. But when I want to update my eclipse or try to android plugins I have the following problem. 'Contracting...

Optimization with SAT4J

I am trying to solve the problem below using SAT4J . My question is how to specify the problem to SAT4J using their API. Here is the problem: boolean[50][50][20] variables; int[50][50][20]...

Unable to install eclipse on 12.10

After installing tomcat 6 on machine , my existing eclipse stops working and on ubuntu software center it showing the option to install eclipse. When I tried to install eclipse I am getting the...

Java Runtime.exec() + Minisat

I programmed an logic gate simulator and netlist parser for verilog.v files. Now I´d like to do some equivalents checks with a SAT module. Currently I use Sat4J but I´d like to use minisat2 for...

CNF simplification

Given a set of clauses, I want to first check whether they are satisfiable. If they are, I want to simplify them and create a CNF, eg., (a OR b) ^ (NOT b) should simplify to: a ^ (NOT b). I'm only...

I can't install anything with apt-get on Ubuntu 14.04

The first problem is that I can't even post my question on askUbuntu! Second, my problem is, I can't install anything since a while via apt-get, I suspect it happened when I tried to install...

Is there an easy-to-use 0-1 IP solver for java?

I would like to use a 0-1 integer programming solver as a tool in a java program. I cannot find anything easy to use on the web. I tried the pseudo-boolean library from sat4j but this is not well...

Alloy - Can't find unsat core

I have a "No instance found" Alloy file, and would like to debug it. The docs say to go to Options and choose SAT Solver > unsat-core. Yet, I don't see that, only SAT4J. I'm running the latest...

Sat4J Running out of heap space

I am trying to solve a partial weighted maximum satisfiability problem using the SAT solver, SAT4J. My .wcnf file is large, it contains about a million constraints. When I run the solver, I get...

consistency check with contradictory facts in Alloy

I do not understand how facts in Alloy work. In this small example there is two contradictory facts, but the predicate testWithoutParameters finds an instance (not expected) unlike the predicate...

Why does the Alloy analyzer fail to find a counter example to the following assertion?

Checking the following assertion produces no counter examples: assert G4_3__10 { all x : Int | (x = 1) } check G4_3__10 Produces the following output: Executing "Check...

Why do solver options like MiniSat, MiniSat with Unsat Core, Lingeling, Glucose do not appear in my Alloy*/Alloy tool?

In the tool I downloaded from: http://alloy.mit.edu/alloy/hola/ the only options of solvers that appear are SAT4J and PLingeling. Why do the other options not also appear? I am using Windows and...

Alloy signatures not shown in Alloy Analyzer 4.2

I have to use Alloy in a Requirements Analysis and Specification Document for a university project. I started with the easy stuff, only signatures and no facts. These are the signatures I...

Timetabling/Scheduling Library

I'm looking for a library to help me solve a constraint based logic problem where I need to schedule a number of different events of varying duration. The events have different attributes...

How to assign integer values to boolean formula's variables using sat4j in java?

I am totally new for sat4j solver and researching boolean satisfiable problems; and i am stuck.I want to make a program which solves integer variables which are in boolean formula like; x1 < x2 +...

Execution Error when change the SATSolver from SAT4J to MiniSAT

In my Java code, when i change the SATSolver from SAT4J to MiniSatJNI or MiniSatProverJNI in: A4Options options = new A4Options(); options.solver = A4Options.SatSolver.SAT4J; For instance,...

Selecting SAT solver from command line

The class edu.mit.csail.sdg.alloy4whole.ExampleUsingTheCompiler provides an example of how to execute Alloy commands from the command-line. The backend solver used in this example is Sat4J. I...

SAT4J embbeding solver exception

i am trying to build N*N Queen placement problem solver for my school project. I have made a program, that is generating CNF statements. I tried to give its adress as argument to the "SAT4J...

Incremental SAT Solving: save solving instance - change model between runs

From my understanding incremental SAT solving helps to evaluate different models who are quite close to each other. I want to use this to evaluate a model and if I change it later reevaluate it...

time taken to parse and simplyify a CNF file

I have just starting to use the Sat4j libraries. Can you direct me how to calculate the time taken to parse and simplify a given CNF input. i have used ISolver solver =...

SAT Solver: SAT4J - more examples?

I haven't used before a SAT solver, so I started to learn how to use SAT4J. Mostly, I am using its API, but I am finding hard to understand sometimes what some arguments (in classes or methods)...

SAT Solver: SAT4J - evaluating only a subset of clauses

I have a formula in a .dimacs/.cnf file as in the following: p cnf 6 9 1 0 -2 1 0 -1 2 0 -5 1 0 -6 1 0 -3 2 0 -4 2 0 -3 -4 0 3 4 -2 0 Is it possible to extract only *those clauses*...

Using a SAT solver from Scala class

I need to invoke a generic SAT solver from an application written in Scala. I was looking into SAT4J since it can be easily imported as a jar file however am finding it difficult to actually use...

SAT4J Implication use case

I'm new to sat4j library. How I can define implication e.g. (A1 v A2 v A3) => (A1 ∧ A4) using sat4j and find boolean values for all variables? I had found unit test for sat4j than I have tried...

About sat4j, how to use sat4j to solve pseudo boolean problems?

I have pseudo boolean problems and I need to solve it with sat4j. Can someone help me? Here's my problem: I have a list of variables named: a,b,c,d,e,f And I have a list of values represented...

Why does Buildozer show `# Aidl not found, please install it.` even after I installed it?

I have installed build-essential, libstdc++6,and, aidl itself: sudo apt-get install aidl Reading package lists... Done Building dependency tree Reading state information... Done The...

"A JNI error has occurred, please check your installation and try again" Sat4J

I wrote a java programm using Sat4J and it works fine. Now I want to export it as a jar-File, but when I execute it, it allways says "A JNI error has occurred, please check your installation and...

Representing Minesweeper Constraints in Sat4J/CNF

I'm trying to implement a minesweeper solver using a SAT solver (sat4j) and I have a simple understanding of how they work. But one thing I can't figure out is how to represent the x+y+Z+....=2...