49 #include "AbstractLinAlgPack/src/AbstractLinAlgPack_SpVectorClass.hpp"
55 NLPAlgoState &s = algo.rsqp_state();
58 std::ostream&
out = algo.track().journal_out();
66 if( s.nu().updated_k(0) && s.nu().get_k(0).nz() ) {
69 indep = s.var_indep();
70 const SpVector &nu_k = s.nu().get_k(0);
72 for( SpVector::const_iterator itr = nu_k.begin(); itr != nu_k.end(); ++itr ) {
73 if( dep.in_range( itr->indice() + nu_k.offset() ) )
75 else if( indep.in_range( itr->indice() + nu_k.offset() ) )
81 out <<
"\nnum_dep_fixed = " << fixed_dep
82 <<
"\nnum_indep_fixed = " << fixed_indep << std::endl;
87 out <<
"\nnu not calculated for the kth iteration\n";
96 , std::ostream& out,
const std::string& L )
const
99 << L <<
"*** Counts the number of fixed variables from "
100 "the dependent and independent sets\n";
AbstractLinAlgPack::size_type size_type
SparseVector< SparseElement< index_type, value_type >, std::allocator< SparseElement< index_type, value_type > > > SpVector
EJournalOutputLevel
enum for journal output.
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
void print_algorithm_step(const Algorithm &algo, Algorithm::poss_type step_poss, EDoStepType type, Algorithm::poss_type assoc_step_poss, std::ostream &out)
Prints to 'out' the algorithm step.
void print_step(const Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss, std::ostream &out, const std::string &leading_str) const
RangePack::Range1D Range1D
NLPAlgo & rsqp_algo(Algorithm &algo)
Convert from a Algorithm to a NLPAlgo.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)