4.1.11.4. hyperflow/Solution

class hyperflow.SolutionRange

A range of solutions for a flow model.

model

(Read-only) The hyperflow model that produced these solutions.

Type:

Model

size

The number of solutions in the flow model.

Type:

int

__len__()
Returns:

the number of solutions in the flow model.

Return type:

int

__iter__()
Returns:

an iterator for the contained solutions.

__getitem__(i)
Parameters:

i (int) – the index into the range.

Returns:

the i th solution in the range.

Return type:

Solution

list()

List overall information about each solution.

print(printer=Printer(), data=None)

Print solutions using the settings in the given printer and the structure information in the data object.

Parameters:
  • printer (Printer) – the printer to use governing the appearance.

  • data (DGPrintData) – the extra data to use encoding the structure of the graph.

class hyperflow.Solution

A solution for a flow model.

model

(Read-only) The hyperflow model that produced the solution.

Type:

Model

id

(Read-only) An ID for the solution which is unique among all solutions from the parent Model object.

Type:

int

objectiveValue

(Read-only) The objective value of this solution.

Type:

int or float

eval(exp)
Parameters:

exp (LinExp) – the linear expression to be evaluated on the solution.

Returns:

the value of the given linear expression evaluated on the solution.

Return type:

int or float

list()

List overall information about the solution.

print(printer=Printer(), data=None)

Print the solution using the settings in the given printer and the structure information in the data object.

Parameters:
  • printer (Printer) – the printer to use governing the appearance.

  • data (DGPrintData) – the extra data to use encoding the structure of the graph.

Returns:

the name of the PDF-files that will be compiled in post-processing for respectively the filtered and unfiltered depictions. If either is not requested by the given printer the corresponding entry is None.

Return type:

tuple[str, str]