Przejdź do treści
Biblioteka skilli
Nauka i badania · Budowanie i kod

dcp-maxicp

/dcp-maxicp

Buduje modele programowania z ograniczeniami w MaxiCP w Javie, z przedziałami dla harmonogramów, przeszukiwaniem i wyliczaniem rozwiązań.

Repozytorium
DCP-Skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
15
Skrypty
4
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 4 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: assets/java/magic-square/MagicSquare.java, assets/java/min-makespan/MinMakespan.java, assets/java/project-selection/ProjectSelection.java, assets/java/single-machine/SingleMachine.java

Co robi i kiedy

Buduje modele programowania z ograniczeniami w MaxiCP w Javie, z przedziałami dla harmonogramów, przeszukiwaniem i wyliczaniem rozwiązań.

Oryginalny opis (EN)

MaxiCP, a constraint programming solver from UCLouvain with integer and Boolean variables, global constraints, interval variables for scheduling, depth-first search, optimisation and solution enumeration, used from Java (org.maxicp:maxicp) through its raw API. Use when writing, debugging or explaining MaxiCP models, or when the user has chosen MaxiCP for a constraint or scheduling problem.

Jak działa

  1. Pick an interface
  2. Contents
  3. Modelling
  4. Solving
  5. All solutions
  6. Common issues
  7. Further reading
Sekcje z nagłówków SKILL.md, w oryginale · 67 linii, 445 słów
Podgląd SKILL.md
---
name: dcp-maxicp
description: MaxiCP, a constraint programming solver from UCLouvain with integer and Boolean variables, global constraints, interval variables for scheduling, depth-first search, optimisation and solution enumeration, used from Java (org.maxicp:maxicp) through its raw API. Use when writing, debugging or explaining MaxiCP models, or when the user has chosen MaxiCP for a constraint or scheduling problem.
license: Apache-2.0
compatibility: "Java: a JDK 21 (MaxiCP classes are compiled for release 21; tested with Eclipse Temurin 21), the MaxiCP 0.0.3 jar (MIT, Maven Central) and, for JSON input, Gson 2.11.0 (Apache-2.0). No key, account or size limits."
metadata:
  domain: constraint-programming
  solver: maxicp
  paradigm: cp
  interfaces: "java"
---

# MaxiCP

MaxiCP is a CP solver: constraints are posted on a solver object, which propagates them to shrink variable
domains, and a depth-first search branches over variables until every one is fixed. **MaxiCP has no default
search and no default time limit.** The search does only what the branching function and the limit
predicate say. This skill covers the raw API (`org.maxicp.cp.CPFactory`, `CPSolver`, `DFSearch`); the
symbolic modelling layer (`org.maxicp.modeling`, `ModelDispatcher`) is a different API.

## Pick an interface

Read this file, then the interface file for your language.

| | Java |
|---|---|
| Read | [interfaces/java/README.md](interfaces/java/README.md) |
| Package | `org.maxicp:maxicp` 0.0.3 jar (Maven Central), raw API |

Other bindings are not covered yet.

## Contents
- [Modelling](#modelling) · [Solving](#solving) · [All solutions](#all-solutions)
- [Common issues](#common-issues) · [Further reading](#further-reading)
- Java: [README](interfaces/java/README.md), [modelling](interfaces/java/modelling.md), [issues](interfaces/java/issues.md); sources in [sources.md](sources.md)

## Modelling

Variables are integer (a domain `lo..hi`), Boolean (0..1) or interval (a task with a start, an end and a
length). Constraints include all-different, linear sums, element, table, circuit, reification and logic, and
for scheduling no-overlap, cumulative resources and makespan. The calls with their exact arguments are in
[the Java modelling page](interfaces/java/modelling.md). A variable is fixed by the search only if the
branching covers it, and a view (a sum, a product, a maximum) follows the variables it is built from.

**Readable models.** Open the program with a comment that states the problem, and start each block of
constraints with a comment in the words of the problem statement, not the API call.

## Solving

| Result | Meaning |
|---|---|
| solutions > 0, completed | every solution was enumerated |
| solutions = 0, completed | no solution (infeasible) |
| completed = false | the limit predicate stopped the search; nothing is known about the rest |

There is no time limit unless a predicate is passed, and values must be read when a solution is found,
because the state is restored when the search returns. Details and names:
[the Java interface](interfaces/java/README.md#solving).

## All solutions

Every solution is reported once per assignment of every branched variable, so auxiliary variables multiply
the solutions: fix each auxiliary through a constraint, or forbid each reported assignment with a no-good and
search again. All optimal solutions: optimise, post `(objective) = optimum`, then enumerate over the
reported variables. Code: [the Java interface](interfaces/java/README.md#all-solutions).

## Common issues

Symptom to fix, with each binding's list: [Java](interfaces/java/issues.md). Two apply everywhere: a
`firstFailNary`-style heuristic bug in 0.0.3 means to branch with `firstFailBinary`, and a non-completed search
proves nothing.

## Further reading

- Source and examples at tag `v0.0.3`: [repository](https://github.com/aia-uclouvain/maxicp/tree/v0.0.3).
- User guide, search strategies and scheduling chapters: [maxicp.org](http://www.maxicp.org).
- API Javadoc: [javadoc.io](https://javadoc.io/doc/org.maxicp/maxicp/latest/org.maxicp/module-summary.html).
Pliki w paczce (15)
  • SKILL.md 4 KB
  • sources.md 4 KB
  • assets/java/magic-square/MagicSquare.java 2 KB
  • assets/java/magic-square/README.md 1 KB
  • assets/java/min-makespan/MinMakespan.java 3 KB
  • assets/java/min-makespan/README.md 1 KB
  • assets/java/project-selection/ProjectSelection.java 3 KB
  • assets/java/project-selection/README.md 1 KB
  • assets/java/project-selection/data.json 1 KB
  • assets/java/single-machine/README.md 1 KB
  • assets/java/single-machine/SingleMachine.java 2 KB
  • evals/evals.json 2 KB
  • interfaces/java/README.md 7 KB
  • interfaces/java/issues.md 3 KB
  • interfaces/java/modelling.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie dcp-maxicp.

Migawka bazy z 13.11.2026 · wersja paczki cbeb6a149a31 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100dcp-z3
    Buduje modele ograniczeń w solverze Z3 z API Pythona: liczby całkowite, wartości logiczne i tablice, sprawdza spełnialność i optymalizuje.
  • 100dcp-pumpkin
    Buduje modele ograniczeń i optymalizacji w Rust z solverem Pumpkin, z ograniczeniami liniowymi i globalnymi oraz dowodzeniem optymalności.
  • 95constraint-programming
    Modeluje i rozwiązuje problemy kombinatoryczne programowaniem z ograniczeniami w OR-Tools CP-SAT: zmienne, AllDifferent, NoOverlap, Cumulative, strategie przeszukiwania i wybór między CP a MIP.
  • 95constraint-programming
    Rozwiązuje złożone problemy harmonogramowania, alokacji i kombinatoryczne programowaniem z ograniczeniami (CP-SAT): ograniczenia globalne, propagacja i strategie przeszukiwania.
  • 91optimization-modeling
    Pomaga budować modele optymalizacyjne i rozwiązywać zadania programowania matematycznego: liniowego, całkowitoliczbowego, mieszanego i z ograniczeniami.
  • 95milp-modeling-gurobi
    Pomaga budować, rozwiązywać i debugować programy mieszane całkowitoliczbowe w Pythonie z Gurobi: zmienne, ograniczenia, cel, parametry, statusy solvera i bezpieczne odczytywanie rozwiązań.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.