HalfSpace

class HalfSpace(val a: DoubleArray, val b: Double)(source)

A linear half-space in the normalized "less-than-or-equal" orientation: the set of points x satisfying a · x <= b. ISC's most-promising-area polytope, the original problem's linear constraints, and the COMPASS halfway hyperplanes are all represented uniformly as half-spaces so that membership tests, redundancy checks, and the RMD sampler can share one representation.

Parameters

a

the coefficient vector, in the problem's input order

b

the right-hand-side bound

Constructors

Link copied to clipboard
constructor(a: DoubleArray, b: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val b: Double

Functions

Link copied to clipboard
fun isSatisfied(x: DoubleArray, tol: Double = defaultTolerance): Boolean

True if a · x <= b within the supplied tolerance.

Link copied to clipboard

The left-hand side a · x evaluated at x.

Link copied to clipboard
open override fun toString(): String