Questions tagged [clp]

Constraint logic programming is a programming paradigm that combines features of logic programming and constraint programming. As in regular logic programming, programs are queried about the provability of a goal, which may contain constraints in addition to literals.

67 questions
1
vote
0 answers

Adding Linear Constraint on python

I am trying to translate a julia code to python and I'm stuck to understand a function of linear programming using CLP in julia or Gurobi, the function is: function setc(c) for i = 1:size(A, 1) m.linconstr[i].lb = float(c[i]) …
M.HANHASSE
  • 129
  • 1
  • 6
1
vote
1 answer

Eclipse CLP: maximum number of constraints/variables

In the Eclipse CLP, how many constraints or variables can I define? I am currently remodeling my scheduling problem - I need to replace a single alldifferent constraint with many atmost constraints. But since I've introduced this change, my ecl…
Jan Drozen
  • 894
  • 2
  • 12
  • 28
1
vote
2 answers

BridJ: LoadLibrary error when loading Clp.dll : A dynamic link library (DLL) initialization routine failed

I am using `clp-java for linear optimization, but when I try to run the code, I get the following error: The process keeps running and the following keeps getting printed repeatedly. BridJ: LoadLibrary error when loading…
Abhijay
  • 278
  • 1
  • 8
1
vote
1 answer

Pyomo 5.1.1 Solvers

anyone knows if I can use the solver CLP in my problem modeled in PyOMO? I found only informations about the old version of pyomo where this was not possible. I'd like to know if it still impossible to use them together. Thanks in advance.
Jaice
  • 49
  • 6
1
vote
0 answers

How to relationally and efficiently handle a key, value dictionary with multiple values per key

I am now trying to use the assoc library in sw-prolog to create a relational prolog program. I need a dictionary that can store multiple values. This can be easily accomplished using a list as value. However, i often need to look up across all…
user2193970
  • 345
  • 2
  • 10
1
vote
1 answer

Error of running an executable file from Python subprosess

I am trying to run an executable file (a linear programming solver CLP.exe) from Python 3.5. Import subprocess exeFile = " C:\\MyPath\\CLP.exe" arg1 = "C:\\Temp\\LpModel.mps" arg2 = "-max" arg3 = " -dualSimplex" arg4 = " -printi all" arg5 =…
usa
  • 43
  • 3
1
vote
0 answers

Non-overlapping rectangles in CLP (CHR)

I have a set of rectangles with varying coordinates for the top left corner of the rectangle and varying width/height. For example, let's take a rectangle A with grounded variables: 1 for the X-coordinate (for the top left corner), 2 for Y, 1 for…
Babyburger
  • 1,730
  • 3
  • 19
  • 32
1
vote
1 answer

call CLP (a linear programming solver writen in C++) from C# .net in VS2013

I need to call CLP (a linear programming solver writen in C++) from C# .net (4.0, 4.5) in VS2013. http://www.coin-or.org/Clp/userguide/clpuserguide.html I have search some links about how to call C++ lib from C#. I found the possible options:…
Lily
  • 295
  • 1
  • 4
  • 14
1
vote
1 answer

ECLiPSe clp : getting all adjacent cells on grid

So my problem is the following: I want, given some point with X,Y-coordinates in a grid, to return all of its adjacent cells. ( Note: in the following examples, I'm using the notation UL = upper-left, UM = upper-middle, UR = upper-right, L = left,…
SND
  • 1,552
  • 2
  • 16
  • 29
1
vote
1 answer

Solving equations with logical expressions in Maxima

I'm trying to find the solutions of a function that contains a logical expression, but with no success so far. First, I defined several functions: isPlant(x) := is ((x = "tree") or (x = "grass")); isAnimal(x) := is ((x = "cat") or (x =…
Anderson Green
  • 30,230
  • 67
  • 195
  • 328
1
vote
2 answers

How to pass values from bat file to DB2 sql file using CLP

I need to update Customer table in chunk of 50K, The number of records in customer table is 2 million. I am using DB2 command prompt to execute my sql from a file using bat file. There are two file which I have created. 1. customerupdate.bat DB2…
Vinayak Dornala
  • 1,609
  • 1
  • 21
  • 27
1
vote
2 answers

How to merge two different Makefiles?

I have did some reading on "Merging Makefiles", one suggest I should leave the two Makefiles separate in different folders [1]. For me this look counter intuitive, because I have the following situation: I have 3 source files (main.cpp…
martijnn2008
  • 3,552
  • 5
  • 30
  • 40
0
votes
4 answers

Program Highlightning .clp files?

I am developing an expert system using Jess shell. I would like a program so as to highlight with colors my code because I want to paste it in a word document. Is there extension in notepad++ ?? Or another program ?
user494766
  • 155
  • 1
  • 5
  • 15
0
votes
1 answer

How can I specify which email address variables should not be processed by SNDSMTPEMM command?

Does anybody know how to tell SNDSMTPEMM that a email recipient address variable should not be processed? This can be done with the attachments by specifying "*NONE" but neither "*N" nor "*NONE" or blanks work on the email addresses. I have created…
0
votes
1 answer

how to read a data file that contain "name grade" and Calculate the GPA in clips

how to calculate the GPA in clips after reading from the file the file is: a 10 9 13 7 b 12 3 10 14 c 8 10 12 10 d 15 8 14 9 output: a (10 9 13 7) 9.75 b (12 3 10 14) 9.75
foloo
  • 1
  • 3