Live data from Hacker News

Viewing profile — hakank

hakank

HN member
Joined
Sat, Jan 20, 2018, 7:26 PM UTC
HN karma
60
Public activity
24 items

About hakank

http://hakank.org/ GitHub: https://github.com/hakank/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

  1. 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…

  2. 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…

  3. comment
    Comment #36823707

    Thanks for your kind words.

  4. comment
    Comment #36823609

    > You around, Hakan? :-) Of course! :-)

  5. 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

  6. comment
    Comment #32891795

    I would (also) say that this is a classic planning problem. It's deterministic, observable, static, and discrete.

  7. comment
    Comment #32890904

    The solution is 26 steps and that should be the optimal solution.

  8. 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…

  9. 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…

  10. 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/ .

  11. comment
    Comment #32807890

    Well, most Prolog support clp(fd) (Constraint Logic Programming, Finite Domain) which mostly include support for minimizing/maximizing objectives.

  12. 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…

  13. 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…

  14. comment
    Comment #32807312

    Hi again Geoff. Here are some other constraint modelling implementations of this problem: http://hakank.org/common_cp_models/#einavpuzzle .

  15. 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!).

  16. 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…

  17. 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…

  18. 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…

  19. comment
    Comment #20517218

    Thanks for the report. The typo is now fixed.

  20. 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.

  21. 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…

  22. comment
  23. 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…

  24. 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.