C++ convex-polyhedron queries
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Parents:
|
|
space_dimension() shall return the ambient dimension without changing the represented value. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine space containing the receiver. It shall count excluded closure points only through the affine hull they share with included points, and shall preserve the represented set. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Ambient dimension and affine rank differ for equalities and for empty sets. |
|
|
|
|
|
Use independent rational ranks for singletons, segments, flats, full-dimensional and empty sets across both topologies and cache histories. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. dimension_type space_dimension() const; dimension_type affine_dimension() const; |
|
|
SW_SPEC
|
2 |
|
|
Parents:
|
Incoming links from:
1. Exact rational polyhedral image
2. Exact rational polyhedral preimage
3. Polyhedral variable-update relational image
4. Polyhedral variable-update relational preimage
5. Polyhedral expression-update relational image
6. Polyhedral expression-update relational preimage
7. Exact bounded polyhedral affine image
8. Exact bounded polyhedral affine preimage
1. Bounded Chvatal half-pair refinement
1. H79 polyhedral widening
2. BHRZ03 polyhedral widening
3. Limited H79 polyhedral extrapolation
4. Bounded H79 polyhedral extrapolation
5. Limited BHRZ03 polyhedral extrapolation
6. Bounded BHRZ03 polyhedral extrapolation
7. H79 convergence certificate values and comparisons
8. BHRZ03 convergence certificate values and comparisons
1. Exact polyhedral cylindrification
2. Polyhedral coordinate growth
3. Exact polyhedral Cartesian concatenation
4. Exact polyhedral coordinate deletion
5. Exact partial coordinate mapping of polyhedra
6. Polyhedral coordinate expansion
7. Polyhedral coordinate folding
1. Nonnegative polyhedral time elapse
1. Nonnegative polyhedral time elapse
2. Positive polyhedral time elapse
3. Integer-point-preserving polyhedral restriction
4. Sound bounded-integer wrapping in polyhedra
5. Exact polyhedral topological closure
1. Sound polyhedral filtering by interval linear forms
2. Sound polyhedral image of interval linear forms
3. Polyhedral refinement of a floating interval store
1. HH95 closed-polyhedron edge extrapolation
1. HPW01 closed-polyhedron extrapolation
1. Polyhedral constraint addition and refinement
2. Polyhedral congruence addition and conservative refinement
3. Polyhedral generator insertion
4. Exact polyhedral intersection
5. Polyhedral hull and exact-union recognition
6. Polyhedral enclosure of set difference
7. Polyhedral context-preserving simplification
1. Reloadable polyhedral ASCII descriptions
2. Polyhedral memory accounting
3. Polyhedron representation invariant query
1. Polyhedron ambient and affine dimensions
2. Equivalent borrowed polyhedral descriptions
3. Polyhedral equality-congruence extraction
4. Exact elementary polyhedral predicates
5. Exact integer-point existence in polyhedra
6. Polyhedral set comparison and hashing
7. Exact polyhedron relation with a constraint
8. Exact polyhedron relation with a generator
9. Exact polyhedron relation with a congruence
10. Polyhedral coordinate and expression boundedness
11. Exact rational polyhedral extrema and witnesses
12. Constant affine-expression frequency in polyhedra
1. Selected-coordinate integer-point existence
2. Dimensioned empty and universe polyhedra
3. Owned polyhedron copying, assignment and exchange
4. Polyhedron construction from constraints
5. Polyhedron construction from generators
6. Polyhedron construction from representable congruences
7. Closed and NNC value conversion
8. Polyhedron conversion from boxes
9. Polyhedron conversion from difference and octagonal shapes
10. Polyhedral affine hull of a rational grid
67 |
Borrowed-description accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned descriptions shall not extend the receiver's lifetime. Constraint and generator accessors shall return receiver-owned const views whose descriptions denote exactly the receiver, including pending changes, latent emptiness, equalities and excluded NNC boundaries. Minimized accessors shall additionally remove redundant visible descriptors; they shall not promise a particular row order, coefficient scale or unique minimal representation. A returned view, its iterators, rows and coefficient references shall be used only while the receiver lives and before an operation replaces or normalizes that representation. Logically const access to the opposite representation may invalidate them. Inputs explicitly permitted to borrow receiver coefficients shall be consumed according to the operation's entry-value contract before such invalidation. External copied descriptions shall own independent values. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Dual descriptions and pending rows are storage choices; their materialization must not change the set or boundary membership. |
BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics). |
|
|
|
|
Round-trip independent constraint/generator descriptions, pending histories, redundant rows, closure-point supports and empty/zero-dimensional states. Check independent copied views and valid borrowing intervals. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc; tests/Polyhedron/minconstraints2.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/mingenerators1.cc; tests/Polyhedron/mingenerators2.cc; tests/Polyhedron/systemidentity1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. const Constraint_System& constraints() const &; const Constraint_System& minimized_constraints() const &; const Generator_System& generators() const &; const Generator_System& minimized_generators() const &; |
|
|
SW_SPEC
|
3 |
|
|
Parents:
|
|
congruences() shall return an independently owned system of equality congruences satisfied by every receiver point. minimized_congruences() shall return a nonredundant equality system defining exactly the receiver's affine hull, or an inconsistent system for empty. A nonminimized extraction need not expose equalities implied only by inequalities. Dimension shall be retained; proper periodic congruences shall not be introduced. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Only affine equalities constrain the affine hull of a convex polyhedron; periodic rows would add a distinct discrete restriction. |
|
|
|
|
|
Check implicit equalities, redundancy, empty/universe, NNC facets and independent extracted-system ownership. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/congruences1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. Congruence_System congruences() const; Congruence_System minimized_congruences() const; |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
The predicates shall decide, respectively, emptiness, equality with the ambient universe, topological closedness as a real pointset, discreteness and boundedness. Discreteness shall mean affine dimension zero; thus empty and singletons shall be discrete. Empty shall be bounded and closed. NNC storage shall not itself imply that the set is nonclosed. Pending or nonminimal descriptions shall not change these decisions. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
A nonempty convex discrete set is a singleton; topological properties belong to the represented set rather than its selected encoding. |
|
|
|
|
|
Check fractional singletons, open/closed intervals, unbounded lines and rays, redundant strict rows, latent contradictions and zero dimensions. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/universe2.cc; tests/Polyhedron/topclosed1.cc; tests/Polyhedron/bounded1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_discrete() const; bool is_bounded() const; |
|
|
SW_SPEC
|
5 |
|
|
Parents:
|
Incoming link from:
1. Selected-coordinate integer-point existence
1 |
contains_integer_point() shall return true exactly when the receiver contains a tuple integral in every coordinate. Empty shall return false and zero-dimensional universe true. Excluded boundary points of an NNC polyhedron shall not count. The decision shall preserve the receiver's represented set. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Rational feasibility does not imply integer feasibility, and closing an NNC set can introduce its only integer candidates. |
|
|
|
|
|
Check fractional singletons, integer-free open intervals, relationally infeasible integer systems, unbounded sets, zero dimensions and all representation histories. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/containsintegerpoint1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool contains_integer_point() const; |
|
|
SW_SPEC
|
6 |
|
|
Parents:
|
|
For equal dimensions and compatible topologies, containment, strict containment, equality and disjointness shall decide the corresponding exact set relations. Containment shall include equality; strict containment shall exclude it. Empty-set relations shall follow set theory. Incompatible dimensions or topologies shall throw std::invalid_argument for the binary member queries; equality shall return false for unequal dimensions or topologies. Inequality expressions shall negate equality. Equal values shall have equal hashes; hash collisions shall not establish equality. Representation history shall not affect these results. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Comparison is extensional, whereas hashing is only a compatible classification with permitted collisions. |
|
|
|
|
|
Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check strict boundary contacts, equal values with different histories, empty values, dimension/topology mismatch and hash agreement under normalization. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/contains1.cc; tests/Polyhedron/contains2.cc; tests/Polyhedron/disjoint1.cc; tests/Polyhedron/disjoint2.cc; tests/Polyhedron/equals1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool contains(const Polyhedron&) const; bool strictly_contains(const Polyhedron&) const; bool is_disjoint_from(const Polyhedron&) const; bool operator==(const Polyhedron&, const Polyhedron&); // Inequality uses C++20 rewriting of operator==. int32_t hash_code() const; |
|
|
SW_SPEC
|
7 |
|
|
Parents:
|
Incoming link from:
9. Exact polyhedron relation with a congruence
1 |
relation_with(c) shall classify the exact intersection with the set satisfying c. It shall include is_included() exactly when every receiver point satisfies c, is_disjoint() exactly when none does, and strictly_intersects() when some satisfy it and some do not. It shall include saturates() exactly when every receiver point satisfies the boundary equality of c. Empty shall therefore be included, disjoint and saturating. Excess descriptor dimension shall throw std::invalid_argument. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Boundary equality and satisfaction differ for strict inequalities, including when every point lies on their excluded boundary. |
|
|
|
|
|
Check equality, strict and non-strict constraints against interior, boundary and crossing examples; include empty, zero dimensions and excess descriptor dimension. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. Poly_Con_Relation relation_with(const Constraint&) const; |
|
|
SW_SPEC
|
8 |
|
|
Parents:
|
|
relation_with(g) shall return subsumes() exactly when an included point belongs to the receiver, a closure point belongs to its closure, a ray is a recession direction, or a line is a two-sided recession direction, according to g's kind. Otherwise it shall return nothing(). Empty shall subsume no generator. Excess dimension shall throw std::invalid_argument; shorter generators shall use zero trailing coordinates. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Closure membership and directional inclusion are distinct from membership of an ordinary point. |
|
|
|
|
|
Check every generator kind on open facets, bounded and unbounded sets, empty/universe, zero padding and dimension rejection. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. Poly_Gen_Relation relation_with(const Generator&) const; |
|
|
SW_SPEC
|
9 |
|
|
Parents:
|
|
Equality congruences shall use the constraint relation in 🔗 7. Exact polyhedron relation with a constraint. For a proper congruence, is_included() shall mean that every point satisfies it, is_disjoint() that none does, and strictly_intersects() that some but not all do. A nonempty polyhedron with a nonconstant congruence expression can be included only when the expression is constant at an admitted residue; that case shall also be saturates(). An excluded closure point shall not establish an intersection. Empty shall be included, disjoint and saturating. Constant congruences shall retain their arithmetic truth value. Excess dimension shall throw std::invalid_argument. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
A nonconstant affine expression on a convex set cannot take only separated lattice values. Endpoint inclusion matters when deciding whether a residue is attained. |
|
|
|
|
|
Use independent interval/residue calculations, open endpoints, non-axis expressions, constant congruences, empty and dimension mismatch. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations2.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. Poly_Con_Relation relation_with(const Congruence&) const; |
|
|
SW_SPEC
|
10 |
|
|
Parents:
|
|
For a nonempty receiver, constrains(v) shall return true exactly when it differs from its cylindrification in coordinate v. Empty shall return true for an admitted coordinate. bounds_from_above(e) and bounds_from_below(e) shall decide existence of finite upper and lower bounds for the affine expression; both shall return true for empty. A constant expression shall be bounded on every receiver. An invalid coordinate or excess expression dimension shall throw std::invalid_argument. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
An affine expression may be bounded by relations even when each participating coordinate is unbounded. |
|
|
|
|
|
Check free/coupled coordinates, constant and relationally bounded expressions, recession directions, empty and argument validation. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constrains1.cc; tests/Polyhedron/bounds1.cc; tests/Polyhedron/querydimensioncontracts1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool constrains(Variable) const; bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const; |
|
|
SW_SPEC
|
11 |
|
|
Parents:
|
|
Maximization and minimization shall return true exactly when the receiver is nonempty and the expression has a finite supremum or infimum. On true, numerator and positive denominator shall represent that exact rational bound; the attainment flag shall say whether it belongs to the expression's image. The witness overload shall return an included point attaining the bound when attained, otherwise a closure point of the receiver attaining that bound. On false all scalar, flag and witness outputs shall remain unchanged. An excess expression dimension shall throw std::invalid_argument. The receiver's set and external expression shall be preserved. Bounded-coefficient generator scalar products and extremum comparisons shall use exact working arithmetic until the final translated rational extremum is reduced. Comparison-only values and unreduced numerators shall not require coefficient admission; the returned numerator and denominator shall. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
Finite extrema can be unattained on NNC sets; a closure witness proves the bound without asserting membership. |
|
|
|
|
|
Use literal rational intervals and linear images of simplices, open endpoints, constant expressions, lines/rays, negative values, sentinel false outputs and witness substitution. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/max_min1.cc; tests/Polyhedron/querydimensioncontracts1.cc; tests/exactboundedworking1.cc; src/Linear_Expression.cc; src/Linear_Expression_defs.hh. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; |
|
|
SW_SPEC
|
12 |
|
|
Parents:
|
|
frequency(e,...) shall return true exactly when the receiver is nonempty and the expression takes a single value on it. On true, frequency shall be 0/1 and the value outputs shall represent that exact rational value with positive denominator. On false all four outputs shall remain unchanged. Excess expression dimension shall throw std::invalid_argument. A nonconstant expression on a convex set shall not be reported as a positive discrete frequency. The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. |
The image of a convex set under an affine expression is convex, so a discrete image must be a singleton. |
|
|
|
|
|
Check empty, constants, fractional fixed expressions, relational equalities, nonconstant bounded/unbounded images and unchanged false outputs. |
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frequency1.cc; tests/Polyhedron/querydimensioncontracts1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown. bool frequency(const Linear_Expression&, Coefficient& freq_n, Coefficient& freq_d, Coefficient& val_n, Coefficient& val_d) const; |