|
|
||||||
|
faudes::Polyhedron Class Reference Detailed DescriptionPolyhedron in R^n. This class is a container to hold a matrix A and a vector B to represent the polyhedron {x| Ax<=b}. It provides basic member access and token IO. To facilitate the ussage of an external library (e.g. PPL) that implements operations on polyhedra, the Polyhedron container can record untyped user data in a (void*) entry. See hyb_compute.cpp for a PLL based implemenation of a reachability analysis. The token format is as follows: <AMatrix rows="4" columns="2">
1 0
-1 0
0 1
0 -1
</AMatrix>
<BVector count="4">
1
0
1
0
</BVector>
</Polyhedron>
Definition at line 674 of file hyb_parameter.h.
Constructor & Destructor Documentation◆ Polyhedron() [1/4]
Default constructor - sets dimension to 0. Definition at line 590 of file hyb_parameter.cpp. ◆ Polyhedron() [2/4]
◆ Polyhedron() [3/4]
Copy-constructor. Definition at line 616 of file hyb_parameter.cpp. ◆ Polyhedron() [4/4]
Construct from file. Definition at line 626 of file hyb_parameter.cpp. ◆ ~Polyhedron()
Destructor. Definition at line 637 of file hyb_parameter.cpp. Member Function Documentation◆ A()
Get A matrix. Definition at line 693 of file hyb_parameter.cpp. ◆ AB()Set A matrix and B vector.
Definition at line 703 of file hyb_parameter.cpp. ◆ B()
Get B vector. Definition at line 698 of file hyb_parameter.cpp. ◆ Clear()
Clear all. Sets dimension to 0 Reimplemented from faudes::Type. Definition at line 661 of file hyb_parameter.cpp. ◆ Dimension() [1/2]
Set dimension. This will invalidate A and B.
Definition at line 673 of file hyb_parameter.cpp. ◆ Dimension() [2/2]
Get dimension. Gets the dimension of the polyhedron (number of columns of A).
Definition at line 687 of file hyb_parameter.cpp. ◆ DoAssign()
Assign from other polyhedron.
Definition at line 643 of file hyb_parameter.cpp. ◆ DoEqual()
Test equality. Note: this test refers to the plain parameters as oposed to the actual polyhedron.
Definition at line 653 of file hyb_parameter.cpp. ◆ DoRead()
Read from TokenReader, see Type::Read for public wrappers. The method invokes TokenReader::ReadBegin() to seek the specified section, reads subsequent symbols, and calls matching TokenReader::ReadEnd(). If no section is specified, the section is assumed to start at the current position of the token stream. If the current position is no begin token, the section "Polyhedron" is read.
Reimplemented from faudes::Type. Definition at line 762 of file hyb_parameter.cpp. ◆ DoSWrite()
Write statistic info to TokenWriter, see Type::SWrite for public wrapper.
Reimplemented from faudes::Type. Definition at line 753 of file hyb_parameter.cpp. ◆ DoWrite()
Write to TokenWriter, see Type::Write for public wrappers.
Reimplemented from faudes::Type. Definition at line 732 of file hyb_parameter.cpp. ◆ Name() [1/2]
Object name.
Reimplemented from faudes::Type. Definition at line 725 of file hyb_parameter.h. ◆ Name() [2/2]
Object name.
Reimplemented from faudes::Type. Definition at line 717 of file hyb_parameter.h. ◆ Size()
Get size. Gets the number of inequalities (number of rows of A).
Definition at line 667 of file hyb_parameter.cpp. ◆ UserData() [1/2]
Set user data. The polyhedron takes ownership of the provided memory. On write access on the defining parameters, the user data gets invalidated by means of "delete". The internal pointer is then set to NULL. Definition at line 718 of file hyb_parameter.cpp. ◆ UserData() [2/2]
Get user data.
Definition at line 725 of file hyb_parameter.cpp. Member Data Documentation◆ mA
Polyhedron: data. Definition at line 821 of file hyb_parameter.h. ◆ mB
Polyhedron: data. Definition at line 824 of file hyb_parameter.h. ◆ mName
name Definition at line 818 of file hyb_parameter.h. ◆ mpUserData
User data. Definition at line 827 of file hyb_parameter.h. The documentation for this class was generated from the following files: libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |