DELAPARRA
Index
Color
NL
Category: Programming paradigms

Solver

Explained by Updated

What is Solver?

Solver: The engine that searches for an assignment satisfying all constraints, often using backtracking plus pruning. A solver is the engine that searches for values satisfying all constraints in a problem. You describe the variables, their possible values and the rules; the solver finds a valid assignment, the best one according to a goal, or proves that none exists.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Solver

How is Solver used in practice?

Solvers combine search, backtracking and propagation, removing impossible options early so they do not have to try every combination. Google OR-Tools, Gurobi, Choco and SAT solvers like MiniSat are examples.

What should you keep in mind with Solver?

For planning problems with many rules, such as rosters, timetables, delivery routes or production planning, a solver is usually more reliable than a hand-written algorithm. When rules change, you add or adjust a constraint instead of rewriting the search. Expect to spend most of the effort on modelling the problem correctly, not on the solving itself.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.