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  **********************************************************************************/
11 
12 #pragma once
13 
14 #include <memory>
15 
16 
17 namespace maingo {
18 
19 
20 namespace ubp {
21 
22 
23 struct DagObj;
24 
25 
36 double evaluate_objective(const double* currentPoint, const unsigned nvar, const bool computeGradient, double* gradient, std::shared_ptr<DagObj> dagObj);
37 
49 void evaluate_inequalities(const double* currentPoint, const unsigned nvar, const unsigned nineq, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
50 
62 void evaluate_equalities(const double* currentPoint, const unsigned nvar, const unsigned neq, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
63 
75 void evaluate_constraints(const double* currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
76 
88 void evaluate_problem(const double* currentPoint, const unsigned nvar, const unsigned ncon, const bool computeGradient, double* result, double* gradient, std::shared_ptr<DagObj> dagObj);
89 
99 void evaluate_hessian(const double* currentPoint, const unsigned nvar, const unsigned ncon, double* hessian, std::shared_ptr<DagObj> dagObj);
100 
101 
102 } // end namespace ubp
103 
104 
105 } // 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:631
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:540
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:506
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:675
namespace holding all essentials of MAiNGO
Definition: aleModel.h:25
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:587
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:720