RegularChains/SemiAlgebraicSetTools/LinearSolve - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : RegularChains/SemiAlgebraicSetTools/LinearSolve

RegularChains[SemiAlgebraicSetTools]

  

LinearSolve

  

solve a linear semi-algebraic system

 

Calling Sequence

Parameters

Returns

Options

Description

Examples

Compatibility

Calling Sequence

LinearSolve(sys, R, options)

LinearSolve(F, N, P, H, R, options)

Parameters

R

-

polynomial ring

sys

-

list of linear equations, inequations and inequalities of R

F

-

list of linear polynomials over R representing equations

N

-

list of linear polynomials over R representing nonnegativity conditions

P

-

list of linear polynomials over R representing positivity conditions

H

-

list of linear polynomials over R representing nonzero conditions

options

-

(optional) equation(s) of the form keyword=value, where keyword is either 'canonical' or 'projection'

Returns

triangularized list of linear equations, inequations, and inequalities of R equivalent to sys

Options

• 

'canonical'=truefalse

  

The canonical option controls the redundancy of the output. Its default value is false. If 'canonical'=true, or just 'canonical' for short, is specified, it will be guaranteed that there are no redundancies among the constraints with the same main variables in the output.

• 

'projection'=nonnegint

  

The projection option determines the subcoordinate space to be projected onto. If the option 'projection'=k is specified, where k is a nonnegative integer less than the number of variables, then the output provides the projection of the zero set of S onto the coordinate subspace determined by the smallest k variables of R.

  

The algorithm behind this command is a variant of Fourier-Motzkin elimination.

Description

• 

Consider the linear semi-algebraic system S  whose unknowns are the variables of R and whose equations, non-negative inequalities, strictly positive inequalities, and inequations are given either by sys or by F, N, P, and H, respectively.

• 

The commands LinearSolve(sys, R) and LinearSolve(F, N, P, H, R) return an equivalent linear semi-algebraic system of triangular shape to the input linear semi-algebraic system S. This assumes that R is a polynomial ring over the field of rational numbers.

• 

If S has no solutions, the output is the empty list . If the solution of S is the whole space, the output is true. Otherwise, the output is a nonempty list of linear constraints satisfying the following properties:

– 

The output constraints are in an ascending order according to the largest variable appearing in them.

– 

The projection of the solutions of the input system S onto any lower dimensional space, say the space formed by the smallest i variables, are exactly the solutions of those constraints in the output which only involve the smallest i variables.

Examples

withRegularChains:

withSemiAlgebraicSetTools:

Define a ring of polynomials. The order of variables is z > y > x.

RPolynomialRingz,y,x

Rpolynomial_ring

(1)

Define a set of linear equations and inequalities.

sysx&plus;y&plus;z&equals;0&comma;0x&plus;yz&comma;xyz<0

sysx&plus;y&plus;z&equals;0&comma;0x&plus;yz&comma;xyz<0

(2)

We eliminate variables according to the order z > y > x.

TLinearSolvesys&comma;R

Tx<0&comma;xy&comma;z&equals;xy

(3)

The output is a set of equivalent linear equations and inequalities sorted in ascending order according to the largest variables appearing in the constraints. It provides conditions on lower order variables such that higher order variables have solutions.

Now compute the projection of sys.

TLinearSolvesys&comma;R&comma;&apos;projection&apos;&equals;2

Tx<0&comma;xy

(4)

The output is a set of linear constraints describing the projection of the zero set of sys onto x&comma;y space.

The option 'canonical' can be used to remove redundancies among constraints having the same main variables.

sysx&plus;y&plus;z1&comma;x&plus;y&plus;z2&comma;0x&plus;yz

sysz&plus;y&plus;x1&comma;z&plus;y&plus;x2&comma;0x&plus;yz

(5)

TLinearSolvesys&comma;R

Tzx&plus;y&comma;z2yx&comma;z1yx

(6)

TLinearSolvesys&comma;R&comma;&apos;canonical&apos;&equals;&apos;true&apos;

Tzx&plus;y&comma;z1yx

(7)

Compatibility

• 

The F, N, P, H and options parameters were introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

RegularChains[RealTriangularize]

RegularChains[SemiAlgebraicSetTools]

RegularChains[SemiAlgebraicSetTools][CylindricalAlgebraicDecompose]

RegularChains[SemiAlgebraicSetTools][Projection]

RegularChains[SuggestVariableOrder]

RegularChains[Triangularize]