Viewing profile — hakank
hakank
HN member- Joined
- Sat, Jan 20, 2018, 7:26 PM UTC
- HN karma
- 60
- Public activity
- 24 items
- HN profile
- View on Hacker News ↗
About hakank
Swedish software developer (retired) / Independent researcher. Interested in programming, mathematics (mostly recreational), constraint programming/modeling, logic programming, machine learning/data mining, inductive (logic) programming, probabilistic programming, genetic programming (especially symbolic regression)and AI (both GOFAI and newer stuff).
Favourite programming languages/systems: Picat, MiniZinc, Prolog, Perl, K, Java, Mathematica, Python.
Recent public activity
-
comment
Comment #39455883
Yes, the underlying engine of Picat is - a slightly altered- B-Prolog, which is available as the "bp" module, from which one can use many of traditional Prolog constructs, for exam…
-
comment
Comment #36824520
I really like MiniZinc, especially that one can test a lot of different type of solvers for a problem. But one of its drawbacks is its limitation of handling input and output (incl…
-
comment
Comment #36823707
Thanks for your kind words.
-
comment
Comment #36823609
> You around, Hakan? :-) Of course! :-)
-
comment
Comment #35604788
Here are some implementations in different constraint languages on this puzzle (which I call the "Einav puzzle"): http://www.hakank.org/common_cp_models/#einavpuzzle
-
comment
Comment #32891795
I would (also) say that this is a classic planning problem. It's deterministic, observable, static, and discrete.
-
comment
Comment #32890904
The solution is 26 steps and that should be the optimal solution.
-
comment
Comment #32821617
Constraint programming solvers tends to focus on finite domain (integers) but there are some solvers that has some supports for floats as decision variables. You can try some of th…
-
comment
Comment #32811467
I haven't seen a comparison on LP-focused benchmarks with OR-tools CP-SAT. In the 2022 MiniZinc Challenge ( https://www.minizinc.org/challenge2022/results2022.html ) both Gurobi, C…
-
comment
Comment #32807919
Here's a link to Picat's main site: http://picat-lang.org/ . My Picat page have quite a few examples of CP/SAT models (also non-CP programs): http://www.hakank.org/picat/ .
-
comment
Comment #32807890
Well, most Prolog support clp(fd) (Constraint Logic Programming, Finite Domain) which mostly include support for minimizing/maximizing objectives.
-
comment
Comment #32807583
Yes, OR-tools has a lot of solvers. The solver I talked about is the CP-SAT solver. It's described ( https://www.minizinc.org/challenge2022/description_or-tools_... ) as: """ CP-SA…
-
comment
Comment #32807417
One interesting development in the latter years is the mix of Constraint programming and SAT solvers. For example Google OR-tools ( https://developers.google.com/optimization/ ) wh…
-
comment
Comment #32807312
Hi again Geoff. Here are some other constraint modelling implementations of this problem: http://hakank.org/common_cp_models/#einavpuzzle .
-
comment
Comment #23309956
Yes, but the solutions are different if the order (permutation) of the rows with the pattern rotations are different. There is a huge number of ways the rows can be ordered (9!).
-
comment
Comment #23307627
Which are the "9 ways to transpose"? In general there are 8 symmetries of a matrix, but you might also count reordering of rows/columns or blocks? I agree that 1,5,9,4,8,3,7,2,6 pa…
-
comment
Comment #23305126
What I can see, of these 72 solutions, there are at most 9 distinct solutions when symmetries are removed (rotation, transpose, flipping). I might have missed some solution. Though…
-
comment
Comment #22603058
Actually, the Peaceable Army (or Armies) of Queens problem is a separate problem and much harder than the n-queens problem. Here is a MiniZinc model: http://hakank.org/minizinc/pea…
-
comment
Comment #20517218
Thanks for the report. The typo is now fixed.
-
comment
Comment #19769818
Not sure if they are that meningful, but I have a collection of SETL programs here: http://www.hakank.org/setl/ (My SETL page). The page also includes some SetlX programs.
-
comment
Comment #18177478
(Thanks for your kind words.) http://hakank.org/common_cp_models/ is a page which collects models that solve the same problem in different CP systems (and mostly with the same appr…
-
comment
Comment #16195391
:-) Yes.
-
comment
Comment #16195272
Some of the FlatZinc solvers can handle (nonlinear) finite-domain problems, and some just linear MIP problems with floats. Some solvers, e.g. Gecode and JaCoP, can handle nonlinear…
-
comment
Comment #16195086
There is a lot off different type of solvers that can be used to solve a MiniZinc model: MIP, Constraint Programming, SAT, Hybrid SAT+CP, Local search etc.