# US 2014/0207720 A1 · System and method for asynchronous explanation and propagation-based constraint solving

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0207720 A1
- Document ID: US20140207720A1
- Status: Published application
- Kind: A1
- Application number: 13/744,657
- Filed: 2013-01-18
- Published: 2014-07-24
- Earliest claimed: 2013-01-18
- Assignees: Raytheon Company
- Applicants: Raytheon Company
- Inventors: Aleksey Nogin
- Web page: https://patentgrep.com/patent/US20140207720A1

## CPC

- G06N 5/02: Knowledge representation; Symbolic representation
- G06F 17/10: Complex mathematical operations {(function generation by table look-up G06F1/03; evaluation of elementary functions by calculation G06F7/544)}
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of a system and method for asynchronous explanation and explanation-based constraint problem solving are generally described herein. In one or more embodiments, an apparatus includes an asynchronous constraint satisfaction problem solving module (ACSPSM), the ACSPSM can be executable by one or more processors. The ACSPSM can be configured to propagate at least one constraint to a plurality of variables by reducing a speculative propagation range of a first variable when a first value in the speculative propagation range of the first variable is in conflict with the constraint. The ACSPSM can be configured to update an explanation for the reduction in the speculative propagation range of the first variable, or backtrack when a choice of a second value for a second variable would result in the speculative propagation range of the first variable becoming empty. The ACSPSM can be multi-threaded.

## Claims

### Claim 1

An apparatus comprising:
an asynchronous constraint satisfaction problem solving module, the asynchronous constraint satisfaction problem solving module executable by one or more processors, the asynchronous constraint problem solving module configured to:
propagate at least one constraint to a plurality of variables in a first thread by reducing a speculative propagation range of a first variable of the plurality of variables when a first value in the speculative propagation range of the first variable is in conflict with the constraint; and
in a second thread, (1) update an explanation for the reduction in the speculative propagation range of the first variable, and (2) backtrack when a choice of a second value for a second variable of the plurality of variables would result in the speculative propagation range of the first variable becoming the empty set.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the asynchronous constraint satisfaction problem solving module is configured to:
choose the second value for the second variable in a third thread, the value chosen based on a heuristic.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the asynchronous constraint satisfaction problem solving module is configured to:
receive, during runtime, a new constraint; and
propagate, during runtime, the new constraint in the first thread.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the asynchronous constraint satisfaction problem solving module is configured to:
receive the plurality of variables and the at least one constraint;
choose the second value for the second variable, the choice made by selecting a value from a search range of the second variable; and
produce output including a solution value for the plurality of variables that satisfies one or more of: the at least one constraints and the new constraint.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein each variable of the plurality of variables includes:
a choice status indicating if the variable is the subject of the choice based on the heuristic;
an initial range including all possible values of the variable;
a search range that is a subset of the initial range of the variable, the search range reduced from the initial range through a backtracking process; and
the speculative propagation range, the speculative propagation range a subset of the search range, the speculative propagation range including an explanation, the explanation including a history of the choices and constraints that reduced the speculative propagation range of the variable.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein;
the search range of the first variable is initialized to the initial range of the first variable;
the speculative propagation range of the first variable is initialized to the initial range of the first variable;
the explanation of the speculative propagation range of the first variable is initialized to the empty set; and
the choice status of the first variable is initialized to indicate that the first variable is not currently the subject of a choice.

### Claim 7 (depends on 5)

The apparatus of claim 5, wherein backtracking comprises:
when the explanation indicates that the choice affects only the speculative propagation range of the first variable, reduce the search range of the second variable by removing the second value from the search range and undo all other reductions based on the choice of the second value for the second variable; and
when the explanation indicates that the choice affects more than one speculative propagation range, take back the lowest ranking choice that led to the speculative propagation range of the first variable becoming the empty set.

### Claim 8

A computer implemented method comprising:
propagating, using a first processor, at least one constraint to a plurality of variables by reducing a speculative propagation range of a first variable of the plurality of variables when a first value in the speculative propagation range is in conflict with the constraint; and
updating, using a second processor, an explanation for the reduction in the speculative propagation range of the first variable; and
backtracking when a choice of a second value for a second variable of the plurality of variables would result in the speculative propagation range of the first variable becoming the empty set.

### Claim 9 (depends on 8)

The method of claim 8, comprising:
choosing, using a third processor, the second value for the second variable based on a heuristic.

### Claim 10 (depends on 8)

The method of claim 8, comprising:
receiving, during runtime, a new constraint; and
propagating, during runtime, the new constraint in the first thread.

### Claim 11 (depends on 10)

The method of claim 10, comprising:
receiving the plurality of variables and the at least one constraint;
choosing a value for the second variable, the choice made by selecting a value from a search range of the second variable; and
producing an output including a solution value for the plurality of variables that satisfies one or more of: the at least one constraint and the new constraint.

### Claim 12 (depends on 11)

The method of claim 11, comprising
receiving an initial range for a variable of the plurality of variables, the initial range including all possible values for the variable;
creating a choice status for the variable, the choice status indicating if the variable is the subject of the choice based on the heuristic;
creating a search range for the variable, the search range a subset of the initial range of the variable, the search range reduced from the initial range through the backtracking process; and
creating the speculative propagation range for the variable, the speculative propagation range a subset of the search range of the variable, the speculative propagation range including an explanation, the explanation including a history of the choices and constraints that reduced the initial range of the variable to the speculative propagation range of the variable.

### Claim 13 (depends on 12)

The method of claim 12, comprising:
initializing the search range of the first variable to the initial range of the first variable;
initializing the speculative propagation range of the first variable to the initial range of the first variable;
initializing the explanation of the speculative propagation range of the first variable to the empty set; and
initializing the choice status of the first variable to indicate that the first variable is not currently the subject of a choice.

### Claim 14 (depends on 13)

The method of claim 13, wherein backtracking when a choice of a second value for a second variable of the plurality of variables would result in the speculative propagation range of the first variable becoming the empty set includes:
when the explanation indicates that the choice affects only the speculative propagation range of the first variable, reducing the search range of the second variable by removing the second value from the search range and undo all other reductions based on the choice of the second value for the second variable; and
when the explanation indicates that the choice affects more than one speculative propagation range, taking back the lowest ranking choice that led to the speculative propagation range of the first variable becoming the empty set.

### Claim 15

A machine readable storage device that stores instructions, the instructions, which when performed by a machine, cause the machine to perform operations for asynchronous constraint satisfaction problem solving, comprising:
propagating, using a first processor, at least one constraint to a plurality of variables by reducing a speculative propagation range of a first variable of the plurality of variables when a first value in the speculative propagation range is in conflict with the constraint; and
updating, using a second processor, an explanation for the reduction in the speculative propagation range of the first variable; and
backtracking when a choice of a second value for a second variable of the plurality of variables would result in the speculative propagation range of the first variable becoming the empty set.

### Claim 16 (depends on 15)

The machine readable storage device of claim 15, wherein the instructions include instructions which when performed by the machine, cause the machine to perform operations comprising:
choosing, using a third processor, the second value for the second variable based on a heuristic.

### Claim 17 (depends on 15)

The machine readable storage device of claim 15, wherein the instructions include instructions which when performed by the machine, cause the machine to perform operations comprising:
receiving, during runtime, a new constraint; and
propagating, during runtime, the new constraint in the first thread.

### Claim 18 (depends on 15)

The machine readable storage device of claim 15, wherein the instructions include instructions which when performed by the machine, cause the machine to perform operations comprising:
receiving the plurality of variables and the at least one constraint;
choosing a value for the second variable, the choice made by selecting a value from a search range of the second variable; and
producing output including a solution value for the plurality of variables that satisfies one or more of: the at least one constraint and the new constraint.

### Claim 19 (depends on 15)

The machine readable storage device of claim 15, wherein the instructions for backtracking when a choice of a second value for a second variable of the plurality of variables would result in the speculative propagation range of the first variable becoming the empty set include instructions which when performed by the machine, cause the machine to perform operations comprising:
when the explanation indicates that the choice affects only the speculative propagation range of the first variable, reducing the search range of the second variable by removing the second value from the search range and undo all other reductions based on the choice of the second value for the second variable; and
when the explanation indicates that the choice affects more than one speculative propagation range, taking back the lowest ranking choice that led to the speculative propagation range of the first variable becoming the empty set.

### Claim 20 (depends on 18)

The machine readable storage device of claim 18, wherein the instructions include instructions which when performed by the machine, cause the machine to perform operations comprising:
receiving an initial range for a variable of the plurality of variables, the initial range including all possible values for the variable;
creating a choice status for the variable, the choice status indicating if the variable is the subject of the choice based on the heuristic;
creating a search range for the variable, the search range a subset of the initial range of the variable, the search range reduced from the initial range through the backtracking process; and
creating the speculative propagation range for the variable, the speculative propagation range a subset of the search range of the variable, the speculative propagation range including an explanation, the explanation including a history of the choices and constraints that reduced the initial range of the variable to the speculative propagation range of the variable.
