Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Constraint (mathematics)

From Wikipedia, the free encyclopedia
Condition of an optimization problem which the solution must satisfy
For constraints in Hamiltonian mechanics, seeconstraint (classical mechanics),first class constraint,primary constraint, andholonomic constraint.
This article includes alist of references,related reading, orexternal links,but its sources remain unclear because it lacksinline citations. Please helpimprove this article byintroducing more precise citations.(September 2016) (Learn how and when to remove this message)

Inmathematics, aconstraint is a condition of anoptimization problem that the solution must satisfy. There are several types of constraints—primarilyequality constraints,inequality constraints, andinteger constraints. The set ofcandidate solutions that satisfy all constraints is called thefeasible set.[1]

Example

[edit]

The following is a simple optimization problem:

minf(x)=x12+x24{\displaystyle \min f(\mathbf {x} )=x_{1}^{2}+x_{2}^{4}}

subject to

x11{\displaystyle x_{1}\geq 1}

and

x2=1,{\displaystyle x_{2}=1,}

wherex{\displaystyle \mathbf {x} } denotes the vector (x1,x2).

In this example, the first line defines the function to be minimized (called theobjective function, loss function, or cost function). The second and third lines define two constraints, the first of which is an inequality constraint and the second of which is an equality constraint. These two constraints arehard constraints, meaning that it is required that they be satisfied; they define the feasible set of candidate solutions.

Without the constraints, the solution would be (0,0), wheref(x){\displaystyle f(\mathbf {x} )} has the lowest value. But this solution does not satisfy the constraints. The solution of theconstrained optimization problem stated above isx=(1,1){\displaystyle \mathbf {x} =(1,1)}, which is the point with the smallest value off(x){\displaystyle f(\mathbf {x} )} that satisfies the two constraints.

Terminology

[edit]
  • If an inequality constraint holds withequality at the optimal point, the constraint is said to bebinding, as the pointcannot be varied in the direction of the constraint even though doing so would improve the value of the objective function.
  • If an inequality constraint holds as astrict inequality at the optimal point (that is, does not hold with equality), the constraint is said to benon-binding, as the pointcould be varied in the direction of the constraint, although it would not be optimal to do so. Under certain conditions, as for example in convex optimization, if a constraint is non-binding, the optimization problem would have the same solution even in the absence of that constraint.
  • If a constraint is not satisfied at a given point, the point is said to beinfeasible.

Hard and soft constraints

[edit]

If the problem mandates that the constraints be satisfied, as in the above discussion, the constraints are sometimes referred to ashard constraints. However, in some problems, calledflexible constraint satisfaction problems, it is preferred but not required that certain constraints be satisfied; such non-mandatory constraints are known assoft constraints. Soft constraints arise in, for example,preference-based planning. In aMAX-CSP problem, a number of constraints are allowed to be violated, and the quality of a solution is measured by the number of satisfied constraints.

Global constraints

[edit]

Global constraints[2] are constraints representing a specific relation on a number of variables, taken altogether. Some of them, such as thealldifferent constraint, can be rewritten as a conjunction of atomic constraints in a simpler language: thealldifferent constraint holds onn variablesx1...xn{\displaystyle x_{1}...x_{n}}, and is satisfied if the variables take values which are pairwise different. It is semantically equivalent to the conjunction of inequalitiesx1x2,x1x3...,x2x3,x2x4...xn1xn{\displaystyle x_{1}\neq x_{2},x_{1}\neq x_{3}...,x_{2}\neq x_{3},x_{2}\neq x_{4}...x_{n-1}\neq x_{n}}. Other global constraints extend the expressivity of the constraint framework. In this case, they usually capture a typical structure of combinatorial problems. For instance, theregular constraint expresses that a sequence of variables is accepted by adeterministic finite automaton.

Global constraints are used[3] to simplify the modeling ofconstraint satisfaction problems, to extend the expressivity of constraint languages, and also to improve theconstraint resolution: indeed, by considering the variables altogether, infeasible situations can be seen earlier in the solving process. Many of the global constraints are referenced into anonline catalog.

See also

[edit]

References

[edit]
  1. ^Takayama, Akira (1985).Mathematical Economics (2nd ed.). New York: Cambridge University Press. p. 61.ISBN 0-521-31498-4.
  2. ^Rossi, Francesca; Van Beek, Peter; Walsh, Toby (2006). "7".Handbook of constraint programming (1st ed.). Amsterdam: Elsevier.ISBN 9780080463643.OCLC 162587579.
  3. ^Rossi, Francesca (2003).Principles and Practice of Constraint Programming CP 2003 00 : 9th International Conference, CP 2003, Kinsale, Ireland, September 29 October 3, 2003. Proceedings. Berlin: Springer-Verlag Berlin Heidelberg.ISBN 9783540451938.OCLC 771185146.

Further reading

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Constraint_(mathematics)&oldid=1315586163"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp