Functions | |
| template<typename FuncEvalType > | |
| void | initialize_dv_from_output_file (const FuncEvalType &f_eval, const std::string &file, const uint_t iter, std::vector< real_t > &dv) |
Initializes the design variable vector dv from iter iteration stored in file . More... | |
| template<typename FuncEvalType > | |
| void | initialize_dv_from_output_file (const FuncEvalType &f_eval, const std::string &file, const uint_t iter, std::vector< complex_t > &dv) |
| template<typename FuncEvalType > | |
| void | write_dhistory_to_file (const FuncEvalType &feval, std::ostream &output, const uint_t iter, const std::vector< real_t > &x, const real_t &obj, const std::vector< real_t > &fval) |
Prints the design iteration data to stream output in a format that can be read back to initialize a problem from a design history. More... | |
| template<typename FuncEvalType > | |
| void | write_dhistory_to_screen (const FuncEvalType &feval, std::ostream &out, const uint_t iter, const std::vector< real_t > &x, const real_t &obj, const std::vector< real_t > &fval) |
Prints the design iteration data to stream out. More... | |
| template<typename FuncEvalType > | |
| void | write_dv_to_file (const FuncEvalType &feval, const std::string &file, const uint_t iter, const std::vector< complex_t > &x, const complex_t &obj, const std::vector< complex_t > &fval) |
| template<typename FuncEvalType > | |
| void | write_obj_constr_history_to_file (const FuncEvalType &feval, std::ostream &output, const uint_t iter, const real_t &obj, const std::vector< real_t > &fval) |
Prints the objective function and constraint values from design iterations stream output. More... | |
|
inline |
Initializes the design variable vector dv from iter iteration stored in file .
This assumes that the file was written by the function write_dhistory_to_file(). The template parameter FuncEvalType is the class that provides the method
FuncEvalType::n_vars() : returns number of design variablesFuncEvalType::n_eq() : returns number of equality constraintsFuncEvalType::n_ineq() : returns number of inequality constraintsfunction arguments are
feval : object of type FuncEvalType that provides the relevant functions noted abovefile : Name of file from which the data will be readiter : iteration number that will be read from file dv : vector into which the design variables will be initialized Definition at line 273 of file design_history.hpp.
|
inline |
Definition at line 374 of file design_history.hpp.
|
inline |
Prints the design iteration data to stream output in a format that can be read back to initialize a problem from a design history.
The template parameter FuncEvalType is the class that provides the method
FuncEvalType::n_vars() : returns number of design variablesFuncEvalType::n_eq() : returns number of equality constraintsFuncEvalType::n_ineq() : returns number of inequality constraints function arguments arefeval : object of type FuncEvalType that provides the relevant functions noted aboveoutput : Stream to which the output will be writteniter : current iteration numberx : current design variable vectorobj : current objective function values.fval : current constraint function values. It is assumed that the equality constraint values are included before the inequality constraint values.Following the initial header information, the data is written in a tabular format where each row corresponds to a design iteration and the columns are arranged with:
Definition at line 218 of file design_history.hpp.
|
inline |
Prints the design iteration data to stream out.
The template parameter FuncEvalType is the class that provides the method
FuncEvalType::n_vars() : returns number of design variablesFuncEvalType::n_eq() : returns number of equality constraintsFuncEvalType::n_ineq() : returns number of inequality constraintsFuncEvalType::tol() : returns tolerance for identifying constraint as activefunction arguments are
feval : object of type FuncEvalType that provides the relevant functions noted aboveout : Stream to which the output will be writteniter : current iteration numberx : current design variable vectorobj : current objective function values.fval : current constraint function values. It is assumed that the equality constraint values are included before the inequality constraint values. Definition at line 58 of file design_history.hpp.
|
inline |
Definition at line 362 of file design_history.hpp.
|
inline |
Prints the objective function and constraint values from design iterations stream output.
Note that design variables are not included. If the design variables are needed then write_dhistory_to_file() must be used instead. The template parameter FuncEvalType is the class that provides the method
FuncEvalType::n_vars() : returns number of design variablesFuncEvalType::n_eq() : returns number of equality constraintsFuncEvalType::n_ineq() : returns number of inequality constraintsfunction arguments are
feval : object of type FuncEvalType that provides the relevant functions noted aboveoutput : Stream to which the output will be writteniter : current iteration numberobj : current objective function values.fval : current constraint function values. It is assumed that the equality constraint values are included before the inequality constraint values. Definition at line 159 of file design_history.hpp.