MAiNGO
outputVariable.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 outputVariable.h
11  *
12  * @brief File containing declaration of outputVariables used for communicating
13  * additional model output at the solution point
14  *
15  **********************************************************************************/
16 
17 #pragma once
18 
19 #include <string>
20 
21 #include "ffunc.hpp"
22 
23 
24 namespace maingo {
25 
26 
35 
36  public:
43  OutputVariable(const std::string descIn, const mc::FFVar valueIn):
44  description(descIn), value(valueIn) {}
45 
52  OutputVariable(const mc::FFVar valueIn, const std::string descIn):
53  value(valueIn), description(descIn) {}
54 
60  OutputVariable(const OutputVariable& variableIn):
61  description(variableIn.description), value(variableIn.value) {}
62 
69  {
70  description = variableIn.description;
71  value = variableIn.value;
72  return *this;
73  }
74 
75  std::string description;
76  mc::FFVar value;
77 };
78 
79 
80 } // end namespace maingo
OutputVariable(const std::string descIn, const mc::FFVar valueIn)
Constructor for use in the evaluate function.
Definition: outputVariable.h:43
Struct for storing additional output variables.
Definition: outputVariable.h:34
OutputVariable & operator=(const OutputVariable &variableIn)
Copy assignment operator.
Definition: outputVariable.h:68
OutputVariable(const mc::FFVar valueIn, const std::string descIn)
Constructor for use in the evaluate function.
Definition: outputVariable.h:52
mc::FFVar value
Definition: outputVariable.h:76
std::string description
Definition: outputVariable.h:75
namespace holding all essentials of MAiNGO
Definition: aleModel.h:31
OutputVariable(const OutputVariable &variableIn)
Copy constructor.
Definition: outputVariable.h:60