MAiNGO
ubpEvaluators.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Copyright (c) 2019 Process Systems Engineering (AVT.SVT), RWTH Aachen University
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License 2.0 which is available at
6  * http://www.eclipse.org/legal/epl-2.0.
7  *
8  * SPDX-License-Identifier: EPL-2.0
9  *
10  * @file ubpEvaluators.h
11  *
12  * @brief File containing declaration of functions for evaluating the model.
13  *
14  **********************************************************************************/
15 
16 #pragma once
17 
18 #include <memory>
19 
20 
21 namespace maingo {
22 
23 
24 namespace ubp {
25 
26 
27 struct DagObj;
28 
29 
40 double evaluate_objective(const double* currentPoint, const unsigned nvar, const bool computeGradient, double* gradient, std::shared_ptr<DagObj> dagObj);
41 
53 void evaluate_inequalities(const double* currentPoint, const unsigned nvar, const unsigned nineq, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
54 
66 void evaluate_equalities(const double* currentPoint, const unsigned nvar, const unsigned neq, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
67 
79 void evaluate_constraints(const double* currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
80 
92 void evaluate_problem(const double* currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
93 
103 void evaluate_hessian(const double* currentPoint, const unsigned nvar, const unsigned ncon, double* hessian, std::shared_ptr<DagObj> dagObj);
104 
105 
106 } // end namespace ubp
107 
108 
109 } // end namespace maingo
void evaluate_constraints(const double *currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double *result, double *gradient, std::shared_ptr< DagObj > dagObj)
Function for evaluating residuals of inequality and equality constraints at a given point.
Definition: ubp.cpp:621
void evaluate_inequalities(const double *currentPoint, const unsigned nvar, const unsigned nineq, const bool computeGradient, double *result, double *gradient, std::shared_ptr< DagObj > dagObj)
Function for evaluating residuals of inequality constraints at a given point.
Definition: ubp.cpp:530
double evaluate_objective(const double *currentPoint, const unsigned nvar, const bool computeGradient, double *gradient, std::shared_ptr< DagObj > dagObj)
Function for evaluating objective function at a given point.
Definition: ubp.cpp:496
void evaluate_problem(const double *currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double *result, double *gradient, std::shared_ptr< DagObj > dagObj)
Function for evaluating the objective function along with the residuals of inequality and equality co...
Definition: ubp.cpp:665
namespace holding all essentials of MAiNGO
Definition: aleModel.h:31
void evaluate_equalities(const double *currentPoint, const unsigned nvar, const unsigned neq, const bool computeGradient, double *result, double *gradient, std::shared_ptr< DagObj > dagObj)
Function for evaluating residuals of equality constraints at a given point.
Definition: ubp.cpp:577
void evaluate_hessian(const double *currentPoint, const unsigned nvar, const unsigned ncon, double *hessian, std::shared_ptr< DagObj > dagObj)
Function for evaluating the Hessian of the Lagrangian at a given point.
Definition: ubp.cpp:710