16 #ifndef dakota_direct_interface_h 
   17 #define dakota_direct_interface_h 
   27 #include <deal.II/base/parameter_handler.h> 
   28 #include <deal.II/base/timer.h> 
   42 #include <DirectApplicInterface.hpp> 
   43 #include <ApplicationInterface.hpp> 
   85                               boost::shared_ptr<const Dakota::ProblemDescDB > 
problem_db,
 
   86                               ParameterHandler& 
param,
 
   87                               boost::shared_ptr <FuelCell::ApplicationCore::ApplicationData> 
data,
 
   89                               std::string ¶m_file);
 
  115                                    const std::vector<std::vector<double> >& dresponses_dl);
 
  133         boost::shared_ptr<SimulationSelector<deal_II_dimension> > 
sim_selector;
 
  179         boost::shared_ptr <FuelCell::ApplicationCore::ApplicationData> 
data;
 
  199                                     boost::shared_ptr<const Dakota::ProblemDescDB > 
problem_db,
 
  200                                     ParameterHandler& 
param,
 
  201                                     boost::shared_ptr <FuelCell::ApplicationCore::ApplicationData> 
data,
 
  203                                     std::string ¶m_file);
 
  270         boost::shared_ptr <FuelCell::ApplicationCore::ApplicationData> 
data;
 
std::string NLS_residual_option
String storing the option of absolute, weighted, or no residuals (for sensitivity) ...
Definition: dakota_direct_interface.h:238
 
std::vector< double > param_values
Vector to store the parameter values to set. 
Definition: dakota_direct_interface.h:262
 
unsigned int n_resp
Number of responses. 
Definition: dakota_direct_interface.h:164
 
std::vector< std::vector< double > > OC_values
Array to store Operating Condition values (set in NLS_data_file) 
Definition: dakota_direct_interface.h:254
 
unsigned int n_dvar
Number of design variables. 
Definition: dakota_direct_interface.h:159
 
This class selects an openFCST application which will run. 
Definition: simulation_selector.h:70
 
std::string NLS_residual_value
String storing the choice of returning the residual vector (for NLS methods) or the L2 norm (for all ...
Definition: dakota_direct_interface.h:242
 
void dakota_adopt_parameters(boost::shared_ptr< FuelCell::ApplicationCore::OptimizationBlockMatrixApplication< dim > > app_linear)
Member function that is used to get the design variable names and values and assigns the values to th...
 
void _initialize(ParameterHandler ¶m)
Local initialize function for this class. 
 
std::string simulator_parameter_file_name
Definition: dakota_direct_interface.h:149
 
ParameterHandler * param
Pointer to the Parameter Handler object. 
Definition: dakota_direct_interface.h:125
 
This class is used to solve a least-squares parameter estimation problem. 
Definition: dakota_direct_interface.h:192
 
Timer eval_timer
Object used to calculate the CPU and Run time for the optimization evaluation. 
Definition: dakota_direct_interface.h:154
 
boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data
Data structure storing information to be shared between applications. 
Definition: dakota_direct_interface.h:270
 
boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data
Data structure storing information to be shared between applications. 
Definition: dakota_direct_interface.h:179
 
std::vector< double > NLS_residual
Output vector storing residuals from experimental data and output. 
Definition: dakota_direct_interface.h:234
 
int derived_map_ac(const Dakota::String &ac_name)
Function called by DAKOTA's iterators in order to run the simulation code and assign the correspondin...
 
boost::shared_ptr< SimulationSelector< deal_II_dimension > > sim_selector
Pointer to the SimulationSelector object which gives access to the file names and selector functions ...
Definition: dakota_direct_interface.h:133
 
DakotaApplication * fcst_interface
Pointer to the DakotaApplication object, so that the design variables can be accessed with synchroniz...
Definition: dakota_direct_interface.h:139
 
std::vector< std::string > OC_names
Vector to store Operating Condition names (set in NLS_data_file) 
Definition: dakota_direct_interface.h:250
 
boost::shared_ptr< const Dakota::ProblemDescDB > problem_db
Pointer to the problem description data base. 
Definition: dakota_direct_interface.h:144
 
This class is used to read the input file from Dakota in its original format, use this inforamtion to...
Definition: dakota_direct_interface.h:70
 
std::string NLS_data_file
Experimental data file for NLS parameter estimation - Operating Conditions & output. 
Definition: dakota_direct_interface.h:229
 
~DakotaLeastSquaresInterface()
Destructor. 
Definition: dakota_direct_interface.h:208
 
std::vector< std::string > name_responses
Member that stores the name of the responses. 
Definition: dakota_direct_interface.h:174
 
std::vector< double > experimental_current
Vector to store experimental current density output values. 
Definition: dakota_direct_interface.h:246
 
int derived_map_ac(const Dakota::String &ac_name)
Function called by DAKOTA's iterators in order to run the simulation code and assign the correspondin...
 
Timer nls_timer
Object used to calculate the CPU and Run time for the NLS loop. 
Definition: dakota_direct_interface.h:265
 
void dakota_assign_results(const std::vector< double > &responses, const std::vector< std::vector< double > > &dresponses_dl)
Member function that is used to assign the application responses and gradients to the result variable...
 
std::vector< std::string > param_names
Vector to store the parameter names to set. 
Definition: dakota_direct_interface.h:258
 
This class is used to interface with DAKOTA as an algorithm library. 
Definition: dakota_application.h:76
 
DakotaLeastSquaresInterface(DakotaApplication &fcst_interface, boost::shared_ptr< const Dakota::ProblemDescDB > problem_db, ParameterHandler ¶m, boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data, boost::shared_ptr< SimulationSelector< dim > > sim_selector, std::string ¶m_file)
Constructor. 
 
~DakotaDirectInterface()
Destructor. 
Definition: dakota_direct_interface.h:92
 
Application handling matrices and assembling the linear system to solve the sensitivity equations...
Definition: optimization_block_matrix_application.h:49
 
std::vector< std::string > name_design_var
Member that stores the name of the design variables. 
Definition: dakota_direct_interface.h:169
 
DakotaDirectInterface(DakotaApplication &fcst_interface, boost::shared_ptr< const Dakota::ProblemDescDB > problem_db, ParameterHandler ¶m, boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data, boost::shared_ptr< SimulationSelector< dim > > sim_selector, std::string ¶m_file)
Default constructor for an object of this class.