MoochoPack : Framework for Large-Scale Optimization Algorithms
Version of the Day
|
Standard builder object for creating DecompositionSystem, EvalNewPoint Step and other objects and setting up some of the state object. More...
#include <MoochoPack_DecompositionSystemStateStepBuilderStd.hpp>
Classes | |
struct | SOptionValues |
Public Types | |
typedef Teuchos::RCP< const OptionsFromStreamPack::OptionsFromStream > | options_ptr_t |
Public Member Functions | |
DecompositionSystemStateStepBuilderStd () | |
void | set_options (const options_ptr_t &options) |
Set the options that will be used to configure the algorithmic objects. More... | |
const options_ptr_t & | get_options () const |
void | process_nlp_and_options (std::ostream *trase_out, NLP &nlp, NLPFirstOrder **nlp_foi, NLPSecondOrder **nlp_soi, NLPDirect **nlp_fod, bool *tailored_approach) |
Process the NLP and process the options passed in from set_options() . Postconditions: More... | |
void | create_decomp_sys (std::ostream *trase_out, NLP &nlp, NLPFirstOrder *nlp_foi, NLPSecondOrder *nlp_soi, NLPDirect *nlp_fod, bool tailored_approach, Teuchos::RCP< DecompositionSystem > *decomp_sys) |
Create the decomposition system object. More... | |
void | add_iter_quantities (std::ostream *trase_out, NLP &nlp, NLPFirstOrder *nlp_foi, NLPSecondOrder *nlp_soi, NLPDirect *nlp_fod, bool tailored_approach, const Teuchos::RCP< DecompositionSystem > &decomp_sys, const Teuchos::RCP< NLPAlgoState > &state) |
Add the common iteration quantities to the state object. More... | |
void | create_eval_new_point (std::ostream *trase_out, NLP &nlp, NLPFirstOrder *nlp_foi, NLPSecondOrder *nlp_soi, NLPDirect *nlp_fod, bool tailored_approach, const Teuchos::RCP< DecompositionSystem > &decomp_sys, Teuchos::RCP< IterationPack::AlgorithmStep > *eval_new_point_step, Teuchos::RCP< CalcFiniteDiffProd > *calc_fd_prod, Teuchos::RCP< VariableBoundsTester > *bounds_tester, Teuchos::RCP< NewDecompositionSelection_Strategy > *new_decomp_selection_strategy) |
Create the EvalNewPoint step object and allocated objects. More... | |
SOptionValues & | current_option_values () |
Return the current option values being used. More... | |
Enums for variaous options categories | |
enum | ENullSpaceMatrixType |
enum | ERangeSpaceMatrixType |
Standard builder object for creating DecompositionSystem, EvalNewPoint Step and other objects and setting up some of the state object.
This class is designed to be used by NLPAlgoConfig
subclasses based on SQP and performs many different tasks that are common to all of these algorithms.
ToDo: Finish documentation!
Definition at line 65 of file MoochoPack_DecompositionSystemStateStepBuilderStd.hpp.
typedef Teuchos::RCP< const OptionsFromStreamPack::OptionsFromStream> MoochoPack::DecompositionSystemStateStepBuilderStd::options_ptr_t |
Definition at line 99 of file MoochoPack_DecompositionSystemStateStepBuilderStd.hpp.
Definition at line 73 of file MoochoPack_DecompositionSystemStateStepBuilderStd.hpp.
Definition at line 77 of file MoochoPack_DecompositionSystemStateStepBuilderStd.hpp.
MoochoPack::DecompositionSystemStateStepBuilderStd::DecompositionSystemStateStepBuilderStd | ( | ) |
Definition at line 114 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
void MoochoPack::DecompositionSystemStateStepBuilderStd::set_options | ( | const options_ptr_t & | options | ) |
Set the options that will be used to configure the algorithmic objects.
options | [in] If NULL then no options will be set. If !=NULL then this is the OptionsFromStream object that will be used to extract the options to use for the algorithm. The state of this object must be maintained by the client until this object is no longer needed. |
Definition at line 117 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
const DecompositionSystemStateStepBuilderStd::options_ptr_t & MoochoPack::DecompositionSystemStateStepBuilderStd::get_options | ( | ) | const |
Definition at line 123 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
void MoochoPack::DecompositionSystemStateStepBuilderStd::process_nlp_and_options | ( | std::ostream * | trase_out, |
NLP & | nlp, | ||
NLPFirstOrder ** | nlp_foi, | ||
NLPSecondOrder ** | nlp_soi, | ||
NLPDirect ** | nlp_fod, | ||
bool * | tailored_approach | ||
) |
Process the NLP and process the options passed in from set_options()
. Postconditions:
this->current_option_values()
returns the options that will be used in all of the following method. ToDo: Finish documentation!
Definition at line 128 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
void MoochoPack::DecompositionSystemStateStepBuilderStd::create_decomp_sys | ( | std::ostream * | trase_out, |
NLP & | nlp, | ||
NLPFirstOrder * | nlp_foi, | ||
NLPSecondOrder * | nlp_soi, | ||
NLPDirect * | nlp_fod, | ||
bool | tailored_approach, | ||
Teuchos::RCP< DecompositionSystem > * | decomp_sys | ||
) |
Create the decomposition system object.
ToDo: Finish documentation!
Definition at line 226 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
void MoochoPack::DecompositionSystemStateStepBuilderStd::add_iter_quantities | ( | std::ostream * | trase_out, |
NLP & | nlp, | ||
NLPFirstOrder * | nlp_foi, | ||
NLPSecondOrder * | nlp_soi, | ||
NLPDirect * | nlp_fod, | ||
bool | tailored_approach, | ||
const Teuchos::RCP< DecompositionSystem > & | decomp_sys, | ||
const Teuchos::RCP< NLPAlgoState > & | state | ||
) |
Add the common iteration quantities to the state object.
ToDo: Finish documentation!
Definition at line 348 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
void MoochoPack::DecompositionSystemStateStepBuilderStd::create_eval_new_point | ( | std::ostream * | trase_out, |
NLP & | nlp, | ||
NLPFirstOrder * | nlp_foi, | ||
NLPSecondOrder * | nlp_soi, | ||
NLPDirect * | nlp_fod, | ||
bool | tailored_approach, | ||
const Teuchos::RCP< DecompositionSystem > & | decomp_sys, | ||
Teuchos::RCP< IterationPack::AlgorithmStep > * | eval_new_point_step, | ||
Teuchos::RCP< CalcFiniteDiffProd > * | calc_fd_prod, | ||
Teuchos::RCP< VariableBoundsTester > * | bounds_tester, | ||
Teuchos::RCP< NewDecompositionSelection_Strategy > * | new_decomp_selection_strategy | ||
) |
Create the EvalNewPoint step object and allocated objects.
ToDo: Finish documentation!
Definition at line 530 of file MoochoPack_DecompositionSystemStateStepBuilderStd.cpp.
|
inline |
Return the current option values being used.
Definition at line 220 of file MoochoPack_DecompositionSystemStateStepBuilderStd.hpp.