# US 2010/0169257 A1 · Transparent parallelism among linear solvers

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

- Number: US 2010/0169257 A1
- Document ID: US20100169257A1
- Status: Published application
- Kind: A1
- Application number: 12/345,060
- Filed: 2008-12-29
- Published: 2010-07-01
- Earliest claimed: 2008-12-29
- Assignees: Microsoft Corporation
- Inventors: Min Wei; Alexander Sasha Stojanovic; David Lao
- Web page: https://patentgrep.com/patent/US20100169257A1

## CPC

- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A model, which defines a mathematical problem, and multiple directives may be received. Each of the multiple directives may be mapped to a respective linear solver instance. The linear solver instances may be launched to execute in parallel. Each of the linear solver instances may use either a primal or a dual algorithm and may further use double arithmetic, exact arithmetic, or hybrid arithmetic, as specified by corresponding ones of the multiple directives. A linear solver instance that uses hybrid arithmetic may start by using double arithmetic and may use exact arithmetic after experiencing a numerical difficulty. After the numerical difficulty is resolved, the linear solver instance that uses hybrid arithmetic may restart and continue to solve the mathematical problem using double arithmetic. After one of the linear solver instances finds an optimal solution, others of the linear solver instances may be stopped and a report may be provided.

## Claims

### Claim 1

A machine-implemented method for transparently launching a plurality of linear solver instances in parallel, the machine-implemented method comprising:
receiving a model and a plurality of directives for configuring multiple linear solver instances for solving a problem;
mapping, by at least one processor of a processing device, each of the plurality of directives to a respective one of the multiple linear solver instances; and
transparently launching the multiple linear solver instances to execute in parallel.

### Claim 2 (depends on 1)

The machine-implemented method of claim 1, wherein the multiple linear solver instances are multiple simplex solver instances.

### Claim 3 (depends on 2)

The machine-implemented method of claim 2, further comprising:
reporting an optimal solution, when the optimal solution is found by one of the multiple linear solver instances; and
stopping execution of others of the multiple linear solver instances after the one of the multiple linear solver instances reports the optimal solution.

### Claim 4 (depends on 3)

The machine-implemented method of claim 3, wherein the multiple linear solver instances include at least one linear solver instance selected from a group including a primal double linear solver instance, a dual double linear solver instance, a primal exact linear solver instance, a dual exact linear solver instance, a primal hybrid linear solver instance, and a dual hybrid linear solver instance.

### Claim 5 (depends on 4)

The machine-implemented method of claim 4, wherein a linear solver instance using hybrid arithmetic performs a method comprising:
starting to solve a mathematical problem using double arithmetic;
determining whether the linear solver instance is experiencing a numerical difficulty;
using exact arithmetic when the linear solver instance experiences the numerical difficulty; and
restarting the linear solver instance to use double arithmetic after the using of the exact arithmetic.

### Claim 6 (depends on 5)

The machine-implemented method of claim 5, wherein after the linear solver instance using the hybrid arithmetic is determined not to be experiencing the numerical difficulty, the machine-implemented method further comprises:
validating, using exact arithmetic, an optimal solution found by the linear solver instance using the hybrid arithmetic, and
indicating that the optimal solution is found.

### Claim 7 (depends on 5)

The machine-implemented method of claim 5, wherein the linear solver instance experiences the numerical difficulty when stalled.

### Claim 8

A processing device comprising:
at least one processor; and
a memory connected to the at least one processor, the memory comprising:
instructions for mapping a received directive to a simplex solver instance that uses hybrid arithmetic, and
instructions for launching the simplex solver instance to solve a mathematical problem defined by a received model.

### Claim 9 (depends on 8)

The processing device of claim 8, wherein the simplex solver instance uses double arithmetic until a numerical difficulty is experienced, and the simplex solver instance uses exact arithmetic to recover from the numerical difficulty.

### Claim 10 (depends on 8)

The processing device of claim 8, wherein the memory further comprises:
instructions for the simplex solver to use double arithmetic when starting, instructions for detecting whether the simplex solver is experiencing a numerical difficulty,
instructions for the simplex solver to perform factorization using exact arithmetic after the simplex solver is detected as experiencing the numerical difficulty, and
instructions for restarting the simplex solver to use the double arithmetic after the simplex solver performs factorization using the exact arithmetic.

### Claim 11 (depends on 8)

The processing device of claim 8, wherein the memory further comprises:
instructions for mapping a received plurality of directives to respective simplex solver instances,
instructions for transparently launching the simplex solver instances to execute in parallel to solve the mathematical problem, and
instructions for reporting an optimal solution found by one of the simplex solver instances.

### Claim 12 (depends on 11)

The processing device of claim 11, wherein the memory further comprises:
instructions for stopping execution of others of the simplex solver instances after the optimal solution is found by the one of the simplex solver instances.

### Claim 13 (depends on 8)

The processing device of claim 8, wherein:
each of the simplex solver instances uses an algorithm selected from a group comprising a primal algorithm and a dual algorithm, and
each of the simplex solver instances uses a solution approach selected from a group comprising double arithmetic, exact arithmetic, and hybrid arithmetic.

### Claim 14

A tangible machine-readable medium having recorded thereon instructions for at least one processor of a processing device, the instructions comprising:
instructions for mapping each of a plurality of directives to a respective one of a plurality of linear solver instances; and
instructions for transparently launching the plurality of linear solver instances to execute in parallel to solve a mathematical problem defined by a model.

### Claim 15 (depends on 14)

The tangible machine-readable medium of claim 14, wherein the instructions further comprise:
instructions for stopping execution of others of the plurality of linear solver instances after one of the plurality of linear solver instances indicates finding of an optimal solution.

### Claim 16 (depends on 14)

The tangible machine-readable medium of claim 14, wherein:
each of the linear solver instances is a respective simplex solver instance,
each of the simplex solver instances includes a primal double simplex solver instance, a primal exact simplex solver instance, a primal hybrid simplex solver instance, a dual double simplex solver instance, a dual exact simplex solver instance, or a dual hybrid simplex solver instance.

### Claim 17 (depends on 14)

The tangible machine-readable medium of claim 14, wherein the instructions further comprise:
instructions for launching a linear solver instance that uses hybrid arithmetic.

### Claim 18 (depends on 17)

The tangible machine-readable medium of claim 17, wherein the instructions further comprise:
instructions for validating, using exact arithmetic, a solution found by the linear solver instance that uses hybrid arithmetic.

### Claim 19 (depends on 17)

The tangible machine-readable medium of claim 17, wherein the instructions further comprise:
instructions for starting the linear solver instance that uses hybrid arithmetic, such that double arithmetic is used,
instructions for determining whether the linear solver instance that uses hybrid arithmetic is experiencing a stall,
instructions for the linear solver instance that uses hybrid arithmetic to use exact arithmetic after detecting that the linear solver instance that uses hybrid arithmetic is experiencing the stall, and
instructions for the linear solver that uses hybrid arithmetic to restart and use double arithmetic after using the exact arithmetic.

### Claim 20 (depends on 14)

The tangible machine-readable medium of claim 14, wherein each of the linear solver instances is a simplex solver instance that uses either a primal algorithm or a dual algorithm.
