VoidWriter class to describe the execuion session of an antares xpansion optimization.
More...
#include <VoidWriter.h>
VoidWriter class to describe the execuion session of an antares xpansion optimization.
◆ dump()
void Output::VoidWriter::dump |
( |
| ) |
|
|
virtual |
◆ end_writing()
void Output::VoidWriter::end_writing |
( |
const IterationsData & | iterations_data | ) |
|
|
virtual |
◆ initialize()
void Output::VoidWriter::initialize |
( |
| ) |
|
|
virtual |
◆ solution_status()
std::string Output::VoidWriter::solution_status |
( |
| ) |
const |
|
overridevirtual |
◆ update_solution()
void Output::VoidWriter::update_solution |
( |
const SolutionData & | solution_data | ) |
|
|
virtual |
saves some entries to be later written
- Parameters
-
nbWeeks_p | : number of the weeks in the study |
lb_p | : solution lower bound |
ub_p | : solution upper bound |
investCost_p | : investment cost |
operationalCost_p | : operational cost |
overallCost_p | : total cost, sum of invest and operational |
solution_p | : point giving the solution and the candidates |
optimality_p | : indicates if optimality was reached |
Implements Output::OutputWriter.
◆ updateBeginTime()
void Output::VoidWriter::updateBeginTime |
( |
| ) |
|
|
overridevirtual |
◆ updateEndTime()
void Output::VoidWriter::updateEndTime |
( |
| ) |
|
|
overridevirtual |
◆ write_duration()
void Output::VoidWriter::write_duration |
( |
const double | duration | ) |
|
|
overridevirtual |
◆ write_failure()
void Output::VoidWriter::write_failure |
( |
| ) |
|
|
virtual |
write an a priori errored json output, overwritten if optimization ends
write a json output with a failure status in solution. If optimization process exits before it ends, this failure will be available as an output.
◆ write_iteration()
void Output::VoidWriter::write_iteration |
( |
const Iteration & | iteration_data, |
|
|
const size_t | iteration_num ) |
|
overridevirtual |
◆ write_iterations()
void Output::VoidWriter::write_iterations |
( |
const IterationsData & | iterations_data | ) |
|
|
virtual |
saves some entries to be later written
- Parameters
-
nbWeeks_p | : number of the weeks in the study |
bendersTrace_p | : trace to be written ie iterations details |
bendersData_p | : final benders data to get the best iteration |
min_abs_gap | : minimum absolute gap wanted |
min_rel_gap | : minimum relative gap wanted |
max_iter | : maximum number of iterations |
◆ write_log_level()
void Output::VoidWriter::write_log_level |
( |
const int | log_level | ) |
|
|
overridevirtual |
◆ write_master_name()
void Output::VoidWriter::write_master_name |
( |
const std::string & | master_name | ) |
|
|
overridevirtual |
◆ write_nbweeks()
void Output::VoidWriter::write_nbweeks |
( |
const int | nb_weeks | ) |
|
|
overridevirtual |
◆ write_solution()
void Output::VoidWriter::write_solution |
( |
const SolutionData & | solution | ) |
|
|
overridevirtual |
◆ write_solver_name()
void Output::VoidWriter::write_solver_name |
( |
const std::string & | solver_name | ) |
|
|
overridevirtual |
◆ WriteProblem()
void Output::VoidWriter::WriteProblem |
( |
const ProblemData & | problem_data | ) |
|
|
overridevirtual |
◆ WriteProblemFormat()
void Output::VoidWriter::WriteProblemFormat |
( |
const std::string | format | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- src/cpp/benders/output/include/antares-xpansion/benders/output/VoidWriter.h
- src/cpp/benders/output/VoidWriter.cpp