48 #ifndef __OBJECTIVE_FUNCTION_BATCH_H__ 49 #define __OBJECTIVE_FUNCTION_BATCH_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/numeric_table.h" 53 #include "data_management/data/homogen_numeric_table.h" 54 #include "services/daal_defines.h" 55 #include "objective_function_types.h" 61 namespace optimization_solver
63 namespace objective_function
84 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
87 typedef algorithms::optimization_solver::objective_function::Input InputType;
88 typedef algorithms::optimization_solver::objective_function::Parameter ParameterType;
89 typedef algorithms::optimization_solver::objective_function::Result ResultType;
105 Batch(
const Batch &other)
117 virtual objective_function::ResultPtr getResult()
128 virtual services::Status setResult(
const objective_function::ResultPtr& result)
131 _res = _result.get();
132 return services::Status();
140 services::SharedPtr<Batch> clone()
const 142 return services::SharedPtr<Batch>(cloneImpl());
146 virtual Batch *cloneImpl()
const DAAL_C11_OVERRIDE = 0;
150 _result = objective_function::ResultPtr(
new ResultType());
154 objective_function::ResultPtr _result;
158 using interface1::Batch;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::optimization_solver::objective_function::interface1::Batch
Interface for computing the Objective function in the batch processing mode.
Definition: objective_function_batch.h:84
daal::algorithms::optimization_solver::objective_function::interface1::Result
Provides methods to access final results obtained with the compute() method of the Objective function...
Definition: objective_function_types.h:186
daal::algorithms::optimization_solver::objective_function::interface1::Batch::setResult
virtual services::Status setResult(const objective_function::ResultPtr &result)
Definition: objective_function_batch.h:128
daal::algorithms::optimization_solver::objective_function::interface1::Batch::~Batch
virtual ~Batch()
Definition: objective_function_batch.h:111
daal::algorithms::optimization_solver::objective_function::interface1::Batch::Batch
Batch()
Definition: objective_function_batch.h:94
daal::algorithms::optimization_solver::objective_function::interface1::Batch::Batch
Batch(const Batch &other)
Definition: objective_function_batch.h:105
daal::algorithms::optimization_solver::objective_function::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: objective_function_batch.h:140
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::optimization_solver::objective_function::interface1::Parameter
Parameter for the Objective function
Definition: objective_function_types.h:122