|
Pipal
1.2.0
Penalty Interior-Point ALgorithm
|
Pretty-printing and timing utilities for solver output. More...
#include <Output.hxx>
Public Member Functions | |
| Output () | |
| Default constructor. | |
| ~Output ()=default | |
| Default destructor. | |
| void | printHeader (Input< Real > const &i, Iterate< Real > const &z) const |
| Print problem header information. | |
| void | printBreak (Counter const &c) const |
| Print a formatted break line and column headers periodically. | |
| void | printDirection (Iterate< Real > const &z, Direction< Real > const &d) const |
| Print a summary of the current search direction. | |
| void | printIterate (Counter const &c, Iterate< Real > const &z) const |
| Print a single iterate row to the console table. | |
| void | printAcceptance (Acceptance< Real > const &a) const |
| Print acceptance information for the chosen trial step. | |
| void | printFooter (Counter const &c, Iterate< Real > const &z, Integer const b) const |
| Print final summary footer and termination message. | |
Private Types | |
| using | MicroSeconds = std::chrono::microseconds |
| using | SteadyClock = std::chrono::steady_clock |
| using | TimePoint = SteadyClock::time_point |
Private Attributes | |
| std::ostream & | s {std::cout} |
| std::string | l |
| std::string | q |
| std::string | n |
| TimePoint | t |
The Output class encapsulates console formatting and lightweight timing utilities used by the solver to display headers, iterates, directions and final summaries.
| Real | Floating-point type used by the solver. |
|
private |
|
private |
|
private |
|
inline |
|
default |
|
inline |
| [in] | a | Acceptance object containing current step fractions. |
|
inline |
| [in] | c | Counters containing the current iteration index. |
|
inline |
| [in] | z | Current iterate. |
| [in] | d | Current search direction. |
|
inline |
| [in] | c | Counters used during evaluations. |
| [in] | z | Current iterate (modified temporarily while testing points). |
| [in] | b | Termination code. |
|
inline |
| [in] | i | Problem input structure. |
| [in] | z | Current iterate. |
|
inline |
| [in] | c | Counters containing the current iteration index. |
| [in] | z | Current iterate. |
|
private |
Line break.
|
private |
Footer line.
|
private |
Quantities header.
|
private |
Output stream (reference to avoid copying std::cout).
|
private |
Timer.