



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




NAMES: Enrique Treviño Lorenzo Ruiz Rodrigo Soto Geetanjali Mesineni
A constraint is simply a logical relation among several unknowns (or variables), each taking a value in a given domain. Solving constraints is a key for many real-life problems. Materials in construction have to satisfy certain constraints, scheduling several jobs requires solving constraints, organizing things requires solving constraints. The sentence “I’ll be there in 10-20 minutes” is a constraint because you are giving an interval of when a proposition will be satisfied. Solving a constraint is easy. For example, x + y > 5, you can easily find what characteristics x and y have. Let T be the set of pairs (x, y) that satisfy this constraint. If you draw the line y = 5 – x. Everything to the right of the line satisfies the constraint, and you solved the constraint. The difficulty happens when you have several dependent constraints. For example, if you add x < 0 and y < 5. Then there is no solution. Although solving linear constraints (main goal of linear programming) is known. The way to solve linear constraints was solved by George Dantzig in the 50’s. But what if the constraints are not linear? This is an open problem and that has generated a lot of research. It is necessary to point out that Constraint Programming is not just about solving these problems but about higher level modeling and solution methods that are easier to understand by the final customer. Constraint Programming combines ideas from several fields including Artificial Intelligence, Combinatorial Algorithms, Computational Logic, Discrete Mathematics, Neural Networks, Operations Research, Programming Languages and Symbolic Computation.
Constraints are present in a lot of real world situations, and Artificial Intelligence is not exempt. The use of constraints is vital for problem solving in Artificial Intelligence. AI use constraints to assemble all the specifications that the determined problem has to achieve as a way to approach to a better solution. Life for humans creates constraints at every step of the way. If it creates constraints for humans, it easily follows that it will create the same type of problems for agents^1. Agents
have to satisfy certain criteria and these criteria are constraints. Agents, robots and other AI artifacts have to be able to solve these constraints in order to function in a way that makes sense. Constraint solving is at the core of being able to function with bounds. Agents have bounds on what they perceive and what they can do. Constraint solving gives the agent the opportunity to think for itself and come to solutions when there are over-constraints, for example, if a robot has to pick what clothing to wear and it has some fashion rules and the clothes that are at his disposal don’t follow the rules, he has to figure out how to solve this problem, whether by giving priority to some rules or by adding relations between the variables. This is what soft-constraints are all about and it is very much related to AI.
Constraints are used to solve almost anything. We use them on a daily basis to solve a lot of our decisions without even noticing. For example, say we want to go to the movies and then go to eat something, but we only have $25 dollars. To solve this we have to decide what type of food we are going to eat, it could be fast food or fancy food. We also have to take into consideration if we are going to eat popcorn and if we’ll buy something to drink in the movie theater. All these things that we have to take into consideration are called constraints. Maybe we are not going to need a computer to solve us this type of problems since we can do it on our own but when the constraints are many and the order of complexity increases, we will need a computer to know how to approach these problems. Persons do it on a daily basis, but computers need algorithms. With good algorithms constraint solving helps with scheduling tasks, such as scheduling flights on airports. It also helps on other tasks like deciding how to use the material for construction. Since constraints are in everything, the applications are endless.
By specifying constraints over problem variables most of the combinatorial problems can be solved. Combinatorial problems are usually assumed to be hard to solve and have a large solution space. So constraint programming tries to solve these problems by reducing the effective size of space and by exploring the size of the space efficiently. However some of the real world problems do not have solutions for satisfying all the constraints as the number of constraints imposed on the problem variables would be huge. Such problems are also called overly constrained problems. In such cases the standard techniques of constraint satisfaction that deal with hard constraints cannot be used directly and some form of soft constraints is required. Soft constraints are more flexible and they can be viewed more of a preference whose satisfaction is not required but preferred. Soft constraints can be used to solve problems that are overly constrained. There are a number of generic models for dealing with soft constraints: hierarchical, partial, valued and semi-ring
In order to satisfy all the constraints every variable in the three domains – Shirt, Trousers and Footwear need to be mapped with at least one corresponding variable in the other two domains according to the fashion rules. To understand the rules, we need a logic system that is a bit more sophisticated than the traditional logic system. Also, note how the logic system is needed. The computer or agent has to understand the relationships between the different domains in some way; it also has to understand what a domain is. For these things we need a logic system, something that will translate human language to computer language, something that formalizes our intuition.
A constraint solving library is one that provides a constraint satisfier and a collection of useful constraints for solving problems. It is basically a large collection of constraints comprising arithmetic, Boolean, meta-constraints and global constraints. Each of these constraints comprise state-of-the art filtering algorithms.
There are two important steps that are involved in the resolution of the problem using constraint programming. They are modeling of the problem and the design of a problem- specific solver or strategy.
The decision component integrated into the project of Constraint Programming is to decide if we should intersect the constraints for achieving consistency. If so then what are the appropriate constraint combinations that should be intersected. Also making decisions about merging the constraints using logic expressions and constructing the constraint hierarchies. Also a decision needs to be made to assign separate weights to each constraint to express the difference in difficulty. Constraint satisfaction management Based on frustration coefficient of constraint Context-sensitive selection of constraint Ordering variables in constraints Constraint satisfaction problem weakening: Enlarging a Variable domain Enlarging a Constraint domain Removing a Variable Removing a Constraint