Minotaur 0.4.1
Docs for developers
SolCheck.h
Go to the documentation of this file.
1//
2// MINOTAUR -- It's only half bull!
3//
4// (C)opyright 2009 - 2021 The MINOTAUR Team.
5//
6
13#ifndef SOLCHECK_H
14#define SOLCHECK_H
15
16#include "Types.h"
17#include "Solver.h"
18
19namespace Minotaur {
24class SolCheck : public Solver {
25public:
27 SolCheck(EnvPtr env);
28
30 ~SolCheck();
31
32 void doSetup();
33
35 void showHelp() const;
36
38 int showInfo();
39
41 int solve(ProblemPtr p);
42
44 std::string getAbout();
45
48
50 // virtual DoubleVector getSolution();
51 virtual SolutionPtr getSol() {return NULL;};
52
54 double getUb();
55
57 double getLb();
58
59private:
60 const static std::string me_;
61 double objSense_;
62 ProblemPtr oinst_;
63 SolveStatus status_;
64
65};
66}
67#endif
68
69
70
Define the abstract base class Solver.
Declare important 'types' used in Minotaur.
Definition: Environment.h:28
Definition: Problem.h:74
Definition: SolCheck.h:24
SolCheck(EnvPtr env)
Default constructor.
Definition: SolCheck.cpp:32
double getUb()
Return the upper bound for the optimal value.
virtual SolutionPtr getSol()
get solution of the last solve.
Definition: SolCheck.h:51
int showInfo()
Display information.
Definition: SolCheck.cpp:86
double getLb()
Return the lower bound for the optimal value.
void showHelp() const
show help messages
Definition: SolCheck.cpp:73
int solve(ProblemPtr p)
Solve the problem.
Definition: SolCheck.cpp:113
std::string getAbout()
get status of the last solve.
Definition: SolCheck.cpp:51
~SolCheck()
Destroy.
Definition: SolCheck.cpp:41
SolveStatus getStatus()
get status of the last solve.
Definition: SolCheck.cpp:67
Definition: Solution.h:30
Definition: Solver.h:28
Definition: ActiveNodeStore.h:20
SolveStatus
Different states an algorithm like branch-and-bound can be in.
Definition: Types.h:158

Minotaur source code documented by Doxygen 1.9.4 on Mon Aug 4 2025