Search Results for

    Show / Hide Table of Contents

    Class solver::EvaluationCounter

    Inheritance
    utils::Component
    solver::EvaluationCounter
    Inherited Members
    configure
    ~Component
    Component
    get_status
    param
    get_class_name

    Constructors

    EvaluationCounter()

    Declaration
    solver::EvaluationCounter::EvaluationCounter()

    EvaluationCounter()

    Declaration
    solver::EvaluationCounter::EvaluationCounter(const EvaluationCounter&other)

    Methods

    reset()

    Declaration
    void solver::EvaluationCounter::reset()

    operator+=()

    Declaration
    const EvaluationCounter&solver::EvaluationCounter::operator+=(const EvaluationCounter&other)

    operator-=()

    Declaration
    const EvaluationCounter&solver::EvaluationCounter::operator-=(const EvaluationCounter&other)

    operator=()

    Declaration
    EvaluationCounter&solver::EvaluationCounter::operator=(const EvaluationCounter&other)=default

    render()

    render the object in structured form

    Return a structured representation of the object. This is intended for output purposes. For instance, the solution your solver finds should have a render method which allows it to be returned as part of the result. Example:

    {c++}
     MySolution : public Component {
      public:
       // Represent the internal bool vector as +-1 output.
       utils::Structure render() const override {
         utils::Structure rendered;
         for (bool item : solution_) rendered.push_back(item ? 1 : -1);
         return rendered;
       }
    
      private:
       std::vector<bool> solution_;
     }
    
     MySolution solution;
     std::cout << solution.render().to_string() << std::endl;
    

    utils::Structure

    Declaration
    utils::Structure solver::EvaluationCounter::render() const

    get_function_evaluation_count()

    Declaration
    uint64_t solver::EvaluationCounter::get_function_evaluation_count() const

    get_difference_evaluation_count()

    Declaration
    uint64_t solver::EvaluationCounter::get_difference_evaluation_count() const

    get_accepted_transition_count()

    Declaration
    uint64_t solver::EvaluationCounter::get_accepted_transition_count() const
    In This Article
    Back to top Generated with Doxygen and DocFX