//
// Created by henri on 01/02/23.
//
#include "idol/optimizers/Algorithm.h"

idol::Algorithm::Algorithm(const Model &t_model) : Optimizer(t_model) {

}

idol::SolutionStatus idol::Algorithm::get_status() const {
    return m_status;
}

idol::SolutionReason idol::Algorithm::get_reason() const {
    return m_reason;
}

double idol::Algorithm::get_best_obj() const {
    return m_best_obj;
}

double idol::Algorithm::get_best_bound() const {
    return m_best_bound;
}

double idol::Algorithm::get_relative_gap() const {
    return relative_gap(m_best_bound, m_best_obj);
}

double idol::Algorithm::get_absolute_gap() const {
    return absolute_gap(m_best_bound, m_best_obj);
}
