66 ,( m && s.lambda().updated_k(0) ) ? &s.lambda().get_k(0) : NULL
67 ,( nb && s.nu().updated_k(0) ) ? &s.nu().get_k(0) : NULL
75 namespace MoochoPack {
115 solve_return = algo().dispatch();
118 report_final_point(algo().retrieve_state(),
false,&
nlp());
128 if(!get_algo().
get())
134 algo().interface_print_algorithm(out);
139 algo().interface_set_algo_timing(algo_timing);
144 return algo().interface_algo_timing();
148 std::ostream&
out )
const
150 algo().interface_print_algorithm_times(out);
156 ,
"NLPAlgoContainer::assert_valid_setup() : The NLP object has not been set" );
159 ,
"NLPAlgoContainer::assert_valid_setup() : The AlgorithmTracker object has not been set" );
162 ,
"NLPAlgoContainer::assert_valid_setup() : The NLPAlgoConfig object has not been set" );
virtual void init_algo(NLPAlgoInterface *algo)=0
Initialize the rSQP algorithm object for the start of SQP iterations.
virtual void report_final_solution(const Vector &x, const Vector *lambda, const Vector *nu, bool is_optimal)
Used by the solver to report the final solution and multipliers.
void set_config(const config_ptr_t &config)
EFindMinReturn find_min()
virtual void config_algo_cntr(NLPAlgoContainer *algo_cntr, std::ostream *trase_out=0)=0
Configure the rSQP algorithm container with an rSQP algorithm object.
Interface to typed iteration quantities.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
virtual T_info & get_k(int offset)=0
Return a reference for the k + offset iteration quanity.
void print_algorithm_times(std::ostream &out) const
void assert_valid_setup() const
virtual bool updated_k(int offset) const =0
Determine if the quanity for the k offset iteration has been accessed by a call to set_k() (see IterQ...
RTOp_index_type size_type
void print_algorithm(std::ostream &out) const
Reduced space SQP state encapsulation interface.
virtual size_type num_bounded_x() const =0
Returns the number of variables in x(i) for which xl(i)> -infinite_bound() or xu(i) < +infinite_bound...
void configure_algorithm(std::ostream *trase_out)
Interface for objects responsible for configuring an rSQP algorithm.
NLPInterfacePack::NLP * nlp
NLP interface class {abstract}.
Thrown if the setup is not valid.
virtual size_type m() const
Return the number of general equality constraints.
void set_algo_timing(bool algo_timing)
config_ptr_t & get_config()