forked from NikitaS4/UI_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IProblem.h
37 lines (28 loc) · 889 Bytes
/
IProblem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef IPROBLEM_H
#define IPROBLEM_H
#include "IVector.h"
#include "ICompact.h"
class IProblem
{
public:
enum InterfaceTypes
{
INTERFACE_0,
DIMENSION_INTERFACE_IMPL
};
//args - x , params - coef
virtual RESULT_CODE goalFunction(IVector const* args, IVector const* params, double& res) const = 0;
virtual RESULT_CODE goalFunctionByArgs(IVector const* args, double& res) const = 0;
virtual size_t getArgsDim() const = 0;
virtual size_t getParamsDim() const = 0;
virtual RESULT_CODE setParams(IVector const* params) = 0;
virtual bool isCompactValid(ICompact const * const & compact) const = 0;
protected:
virtual ~IProblem(){}
IProblem() = default;
private:
/* no way default copy/assignment */
IProblem(const IProblem& other) = delete;
void operator=(const IProblem& other) = delete;
};
#endif // IPROBLEM_H