Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/constraint
ConstraintSolver
Class ConstraintSolver
Hierarchy
ConstraintSolver
Implements
ConstraintScope
Index
Constructors
constructor
Properties
artificial
constraint
Variables
constraints
infeasible
invalidated
objective
rows
Methods
add
Constraint
add
Constraint
Row
add
Constraint
Variable
constraint
constraint
Variable
did
Add
Constraint
did
Add
Constraint
Variable
did
Remove
Constraint
did
Remove
Constraint
Variable
did
Set
Constraint
Variable
has
Constraint
has
Constraint
Variable
invalidate
remove
Constraint
remove
Constraint
Row
remove
Constraint
Variable
set
Constraint
Variable
update
Solution
will
Add
Constraint
will
Add
Constraint
Variable
will
Remove
Constraint
will
Remove
Constraint
Variable
will
Set
Constraint
Variable
Constructors
constructor
new
Constraint
Solver
(
)
:
ConstraintSolver
Returns
ConstraintSolver
Properties
Readonly
artificial
artificial
:
null
|
ConstraintRow
Readonly
constraint
Variables
constraint
Variables
:
ConstraintMap
<
ConstraintVariable
,
ConstraintVariableBinding
>
Readonly
constraints
constraints
:
ConstraintMap
<
Constraint
,
ConstraintTag
>
Readonly
infeasible
infeasible
:
ConstraintSymbol
[]
Readonly
invalidated
invalidated
:
ConstraintMap
<
ConstraintSymbol
,
null
|
ConstraintRow
>
Readonly
objective
objective
:
ConstraintRow
Readonly
rows
rows
:
ConstraintMap
<
ConstraintSymbol
,
ConstraintRow
>
Methods
add
Constraint
add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
add
Constraint
Row
add
Constraint
Row
(
constraint
:
Constraint
, row
:
ConstraintRow
, tag
:
ConstraintTag
)
:
void
Parameters
constraint:
Constraint
row:
ConstraintRow
tag:
ConstraintTag
Returns
void
add
Constraint
Variable
add
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
constraint
constraint
(
lhs
:
AnyConstraintExpression
, relation
:
ConstraintRelation
, rhs
?:
AnyConstraintExpression
, strength
?:
AnyConstraintStrength
)
:
Constraint
Parameters
lhs:
AnyConstraintExpression
relation:
ConstraintRelation
Optional
rhs:
AnyConstraintExpression
Optional
strength:
AnyConstraintStrength
Returns
Constraint
constraint
Variable
constraint
Variable
(
name
:
string
, value
?:
number
, strength
?:
AnyConstraintStrength
)
:
ConstraintBinding
Parameters
name:
string
Optional
value:
number
Optional
strength:
AnyConstraintStrength
Returns
ConstraintBinding
Protected
did
Add
Constraint
did
Add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
did
Add
Constraint
Variable
did
Add
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
Protected
did
Remove
Constraint
did
Remove
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
did
Remove
Constraint
Variable
did
Remove
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
Protected
did
Set
Constraint
Variable
did
Set
Constraint
Variable
(
variable
:
ConstraintVariable
, newState
:
number
, oldState
:
number
)
:
void
Parameters
variable:
ConstraintVariable
newState:
number
oldState:
number
Returns
void
has
Constraint
has
Constraint
(
constraint
:
Constraint
)
:
boolean
Parameters
constraint:
Constraint
Returns
boolean
has
Constraint
Variable
has
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
boolean
Parameters
variable:
ConstraintVariable
Returns
boolean
invalidate
invalidate
(
symbol
:
ConstraintSymbol
, row
?:
null
|
ConstraintRow
)
:
void
Parameters
symbol:
ConstraintSymbol
Optional
row:
null
|
ConstraintRow
Returns
void
remove
Constraint
remove
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
remove
Constraint
Row
remove
Constraint
Row
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
remove
Constraint
Variable
remove
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
set
Constraint
Variable
set
Constraint
Variable
(
variable
:
ConstraintVariable
, newState
:
number
)
:
void
Parameters
variable:
ConstraintVariable
newState:
number
Returns
void
update
Solution
update
Solution
(
)
:
void
Returns
void
Protected
will
Add
Constraint
will
Add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
will
Add
Constraint
Variable
will
Add
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
Protected
will
Remove
Constraint
will
Remove
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
Protected
will
Remove
Constraint
Variable
will
Remove
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
Protected
will
Set
Constraint
Variable
will
Set
Constraint
Variable
(
variable
:
ConstraintVariable
, newState
:
number
, oldState
:
number
)
:
void
Parameters
variable:
ConstraintVariable
newState:
number
oldState:
number
Returns
void
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Constraint
Constraint
Binding
Constraint
Constant
Constraint
Dummy
Constraint
Error
Constraint
Group
Constraint
Invalid
Constraint
Map
Constraint
Product
Constraint
Row
Constraint
Slack
Constraint
Solver
constructor
artificial
constraint
Variables
constraints
infeasible
invalidated
objective
rows
add
Constraint
add
Constraint
Row
add
Constraint
Variable
constraint
constraint
Variable
did
Add
Constraint
did
Add
Constraint
Variable
did
Remove
Constraint
did
Remove
Constraint
Variable
did
Set
Constraint
Variable
has
Constraint
has
Constraint
Variable
invalidate
remove
Constraint
remove
Constraint
Row
remove
Constraint
Variable
set
Constraint
Variable
update
Solution
will
Add
Constraint
will
Add
Constraint
Variable
will
Remove
Constraint
will
Remove
Constraint
Variable
will
Set
Constraint
Variable
Constraint
Sum
Constraint
Expression
Constraint
Key
Constraint
Scope
Constraint
Symbol
Constraint
Term
Constraint
Variable
Any
Constraint
Expression
Any
Constraint
Strength
Constraint
Relation
Constraint
Strength
Constraint
Strength
Init
Constraint
Expression
Constraint
Key
Constraint
Strength
Constraint
Symbol
Constraint
Term
Generated using
TypeDoc