PPL Java Language Interface 2.0
parma_polyhedra_library.PIP_Tree_Node Class Reference

A node of the PIP solution tree. More...

Inheritance diagram for parma_polyhedra_library.PIP_Tree_Node:

Public Member Functions

native PIP_Solution_Node as_solution ()
 Returns the solution node if this is a solution node, and null otherwise.
native PIP_Decision_Node as_decision ()
 Returns the decision node if this is a decision node, and null otherwise.
native boolean OK ()
 Returns true if the pip tree is well formed, i.e., if it satisfies all its implementation invariants; returns false and perhaps makes some noise if broken. Useful for debugging purposes.
native long number_of_artificials ()
 Returns the number of artificial parameters in the PIP_Tree_Node.
native Artificial_Parameter_Sequence artificials ()
 Returns the sequence of (Java) artificial parameters in the PIP_Tree_Node.
native Constraint_System constraints ()
 Returns the system of parameter constraints controlling the PIP_Tree_Node.
native String toString ()
 Returns a string representation of this.

Additional Inherited Members

Protected Member Functions inherited from parma_polyhedra_library.PPL_Object
 PPL_Object ()
 Builds an object that points to `null'.

Detailed Description

A node of the PIP solution tree.

This is the base class for the nodes of the binary trees representing the solutions of PIP problems. From this one, two classes are derived:

Each returned handle retains its owning PIP_Problem. Child handles and the additional wrappers returned by as_solution() and as_decision() independently retain the same owner and validity token; they do not retain parent wrappers. They never delete native tree nodes. Updating or explicitly freeing the problem invalidates every existing handle, and all subsequent tree operations throw Invalid_Argument_Exception before accessing native storage. An unbound, explicitly constructed wrapper is not a usable tree handle. On an infeasible solution handle, as_solution() and as_decision() return null; other operations throw Invalid_Argument_Exception.

Member Function Documentation

◆ as_solution()

native PIP_Solution_Node parma_polyhedra_library.PIP_Tree_Node.as_solution ( )

Returns the solution node if this is a solution node, and null otherwise.

Returns
The solution node if this is a solution node, and null otherwise.

◆ as_decision()

native PIP_Decision_Node parma_polyhedra_library.PIP_Tree_Node.as_decision ( )

Returns the decision node if this is a decision node, and null otherwise.

Returns
The decision node if this is a decision node, and null otherwise.

◆ OK()

native boolean parma_polyhedra_library.PIP_Tree_Node.OK ( )

Returns true if the pip tree is well formed, i.e., if it satisfies all its implementation invariants; returns false and perhaps makes some noise if broken. Useful for debugging purposes.

Returns
True if the pip tree is well formed, i.e., if it satisfies all its implementation invariants; returns false and perhaps makes some noise if broken. Useful for debugging purposes.

◆ number_of_artificials()

native long parma_polyhedra_library.PIP_Tree_Node.number_of_artificials ( )

Returns the number of artificial parameters in the PIP_Tree_Node.

Returns
The number of artificial parameters in the PIP_Tree_Node.

◆ artificials()

native Artificial_Parameter_Sequence parma_polyhedra_library.PIP_Tree_Node.artificials ( )

Returns the sequence of (Java) artificial parameters in the PIP_Tree_Node.

Returns
The sequence of (Java) artificial parameters in the PIP_Tree_Node.

◆ constraints()

native Constraint_System parma_polyhedra_library.PIP_Tree_Node.constraints ( )

Returns the system of parameter constraints controlling the PIP_Tree_Node.

The indices in the constraints are the same as the original variables and parameters. Coefficients in indices corresponding to variables always are zero.

Returns
The system of parameter constraints controlling the PIP_Tree_Node.

◆ toString()

native String parma_polyhedra_library.PIP_Tree_Node.toString ( )

Returns a string representation of this.

Returns
A string representation of this.

The documentation for this class was generated from the following file:
  • PIP_Tree_Node.java