DiSMEC++
minimizer.cpp File Reference
#include "minimizer.h"
#include <vector>
#include <stdexcept>
#include "spdlog/spdlog.h"
#include "stats/collection.h"
#include "doctest.h"

Go to the source code of this file.

Classes

class  anonymous_namespace{minimizer.cpp}::MockMinimizer
 A minimizer to be used in test cases that returns a fixed result. More...
 
struct  anonymous_namespace{minimizer.cpp}::MockObjective
 An objective to be used in test cases. Does not do any computations, but just resturns constants. More...
 

Namespaces

 anonymous_namespace{minimizer.cpp}
 

Functions

 TEST_CASE ("minimizer base class minimize")
 

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "minimizer base class minimize"  )
Test:
These tests verify that the Minimizer base class minimize performs the correct parameter checking and result passing. These are:
  • verify the correct size of the initial value
  • time the duration for the minimization
  • pass the result through unchanged

Definition at line 77 of file minimizer.cpp.

References dismec::solvers::DIVERGED.