Questions tagged [jacop]

8 questions
3
votes
1 answer

Jacop, constraint solver

I am a beginner in Jacop constraint solver. I looked into its documents but couldn't find how to solve my following problem. I have a matrix[n][n] of nxn domain variables of IntVar. Now, I need to apply the following constraint to…
2
votes
1 answer

Constraint Programming Solver JaCoP solution found but store inconsistent

I am using JaCoP - a constraint programming solver for Java - to calculate a solution to a complex scheduling problem. Now I am facing the problem that the found solution is not correct. I am imposing the following constraint: store.impose(new…
2
votes
1 answer

Using JaCop in Java to optimize a function

I'm trying to use the JaCoP library in Java for optimization but I have some trouble translating my functions. I have a bunch of variables, say: x1 to xn and I have a function using them to output a maximum likelihood estimator (though it could be…
Pane
  • 555
  • 2
  • 7
  • 20
0
votes
0 answers

JACoP Colocalization Macro Errors Galore

I've tried countless combinations of paths to try and get my macro working to analyze a very large set of images using JACoP. Any suggestions on what might be the issue? this iteration got me closest (I think) to getting it to work. It even loads…
apowell37
  • 1
  • 1
0
votes
1 answer

Scala - How to convert Map[Int,List[List[IntVar]]] to

I am new in Scala programming and the flatmap function gives me headache. Before you ask me to search, I made some research on Stackoverflow : https://stackoverflow.com/search?q=scala+map+to+list but I didn't find something to solve easily my…
jy95
  • 773
  • 13
  • 36
0
votes
1 answer

How to use SumInt using JaCop in Java?

I have been trying to learn Jacop to solve my constraint satisfaction problems. I could not find any tutorials online other than the Api. So I am trying to test out how its methods work. For example on using SumInt. I am trying to count how many…
user2775042
  • 509
  • 2
  • 6
  • 21
0
votes
1 answer

Calling Java method from JRuby throws "no constructor for arguments error"

I'm trying to initialize this class from the JaCop constraint programming library from jRuby. I am using the correct type of arguments, but for some reason I keep getting this error message: NameError: no constructor for arguments ( …
picardo
  • 24,530
  • 33
  • 104
  • 151
-2
votes
1 answer

JAVA- JaCoP Constraints Programming

Please somebody help me with this error Thanks, i Using the JaCoP Library, It´s a transport Problem and i need find the OptimalSearch it's constraints programming Exception in thread "main" java.lang.NullPointerException at…