48 #include "MoochoPack_LineSearchFilter_Step.hpp" 49 #include "MoochoPack_Exceptions.hpp" 50 #include "MoochoPack_moocho_algo_conversion.hpp" 51 #include "NLPInterfacePack_NLPObjGrad.hpp" 52 #include "IterationPack_print_algorithm_step.hpp" 53 #include "AbstractLinAlgPack_VectorOut.hpp" 54 #include "AbstractLinAlgPack_LinAlgOpPack.hpp" 55 #include "AbstractLinAlgPack_assert_print_nan_inf.hpp" 56 #include "AbstractLinAlgPack_VectorMutableSubView.hpp" 57 #include "Teuchos_dyn_cast.hpp" 58 #include "Teuchos_Assert.hpp" 59 #include "Teuchos_as.hpp" 67 class RemoveFilterEntryPred {
70 RemoveFilterEntryPred(
71 const MoochoPack::value_type &f_with_boundary,
72 const MoochoPack::value_type &theta_with_boundary,
73 const Teuchos::RCP<std::ostream> &out
75 :f_with_boundary_(f_with_boundary),
76 theta_with_boundary_(theta_with_boundary),
80 bool operator()(
const MoochoPack::FilterEntry &entry)
83 entry.f >= f_with_boundary_
85 entry.theta >= theta_with_boundary_
90 <<
"\nRemoving from the filter the redundant point:" 91 <<
"\n f_with_boundary = " << entry.f
92 <<
"\n theta_with_boundary = " << entry.theta
93 <<
"\n iteration added = " << entry.iter
103 const MoochoPack::value_type f_with_boundary_;
104 const MoochoPack::value_type theta_with_boundary_;
105 const Teuchos::RCP<std::ostream> out_;
116 value_type MIN(value_type x, value_type y)
117 {
return (x < y) ? x : y; }
119 value_type MAX(value_type x, value_type y)
120 {
return (x > y) ? x : y; }
122 LineSearchFilter_Step::LineSearchFilter_Step(
123 Teuchos::RCP<NLPInterfacePack::NLP> nlp
124 ,
const std::string obj_iq_name
125 ,
const std::string grad_obj_iq_name
126 ,
const value_type &gamma_theta
127 ,
const value_type &gamma_f
128 ,
const value_type &f_min
129 ,
const value_type &gamma_alpha
130 ,
const value_type &delta
131 ,
const value_type &s_f
132 ,
const value_type &s_theta
133 ,
const value_type &theta_small_fact
134 ,
const value_type &theta_max
135 ,
const value_type &eta_f
136 ,
const value_type &back_track_frac
139 gamma_theta_(gamma_theta),
142 gamma_alpha_(gamma_alpha),
146 theta_small_fact_(theta_small_fact),
147 theta_max_(theta_max),
149 back_track_frac_(back_track_frac),
150 filter_(FILTER_IQ_STRING),
152 grad_obj_f_(grad_obj_iq_name),
155 TEUCHOS_TEST_FOR_EXCEPTION(
158 "Null nlp passed to LineSearchFilter_Step constructor" 161 #if defined(FILTER_DEBUG_OUT) 162 std::ofstream fout(
"filter_out.xml", std::ofstream::out | std::ofstream::trunc);
163 fout <<
"<FilterDebugDocument>" << std::endl;
170 #if defined(FILTER_DEBUG_OUT) 171 std::ofstream fout(
"filter_out.xml", std::ofstream::out | std::ofstream::app);
172 fout <<
"</FilterDebugDocument>" << std::endl;
179 IterationPack::EDoStepType type
183 using Teuchos::dyn_cast;
184 using IterationPack::print_algorithm_step;
189 NLPAlgo &algo = rsqp_algo(_algo);
192 EJournalOutputLevel olevel = algo.algo_cntr().journal_output_level();
196 if (static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS))
198 using IterationPack::print_algorithm_step;
199 print_algorithm_step( algo, step_poss, type, assoc_step_poss, out );
202 Teuchos::VerboseObjectTempState<NLP>
204 nlp_, Teuchos::getFancyOStream(Teuchos::rcp(&out,
false)),
205 Teuchos::VERB_DEFAULT );
214 IterQuantityAccess<value_type>
216 &alpha_iq = s.alpha();
218 IterQuantityAccess<VectorMutable>
220 *c_iq = m > 0 ? &s.c() : NULL,
222 &Gf_iq = grad_obj_f_(s);
225 if (!s.d().updated_k(0) || !x_iq.updated_k(0))
228 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"Error, d_k or x_k not updated." );
232 if (!alpha_iq.updated_k(0) || alpha_iq.get_k(0) > 1 || alpha_iq.get_k(0) <= 0)
235 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::out_of_range,
"Error, alpha_k not updated or out of range [0, 1)." );
241 const value_type Gf_t_dk =
244 ? Gf_iq.get_k(0).inner_product( s.d().get_k(0) )
245 : dyn_cast<NLPInterfacePack::NLPObjGrad>(*nlp_).calc_Gf_prod(
246 x_iq.get_k(0),s.d().get_k(0)
249 const value_type theta_k = CalculateTheta_k( c_iq, h_iq, 0);
250 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
251 out <<
"\ntheta_k = ||c_k||1/c_k.dim() = " << theta_k << std::endl;
252 const value_type gamma_f_used = CalculateGammaFUsed(f_iq,theta_k,olevel,out);
253 const value_type theta_small = theta_small_fact_ * MAX(1.0,theta_k);
254 const value_type alpha_min = CalculateAlphaMin( gamma_f_used, Gf_t_dk, theta_k, theta_small );
256 value_type &alpha_k = alpha_iq.get_k(0);
257 value_type theta_kp1 = 0.0;;
261 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
263 out <<
"\nBeginning Filter line search method.\n" 264 <<
"\nCurrent Filter\n" 265 <<
"-----------------------------------------------------\n" 266 <<
"|" << setw(25) <<
"f_with_boundary " 267 <<
"|" << setw(25) <<
"theta_with_boundary " 269 <<
"-----------------------------------------------------\n";
271 IterQuantityAccess<Filter_T>& filter_iq = filter_(s);
273 if (filter_iq.updated_k(-1)) {
274 Filter_T& filter = filter_iq.get_k(-1);
275 if (!filter.empty()) {
277 Filter_T::iterator entry = filter.begin();
278 entry != filter.end();
282 out <<
"|" << setw(25) << entry->f
283 <<
" " << setw(25) << entry->theta
288 out <<
"Filter is empty.\n";
292 out <<
"Filter is empty.\n";
296 out <<
"\n Iteration Status\n";
297 out <<
"----------------------------------------------------------------------------------------------------------\n";
299 out <<
"|" << setw(w) <<
"alpha_k " 300 <<
"|" << setw(w) <<
"f_kp1 " 301 <<
"|" << setw(w) <<
"theta_kp1 " 302 <<
"|" << setw(w) <<
"pt. status " 303 <<
"|" << setw(40) <<
"comment " 306 out <<
"----------------------------------------------------------------------------------------------------------" 311 bool augment_filter =
false;
312 bool accepted =
false;
313 while (alpha_k > alpha_min && !accepted)
318 if (!ValidatePoint(x_iq, f_iq, c_iq, h_iq,
false))
323 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
327 out <<
"|" << setw(w) <<
" --- " 328 <<
" " << setw(w) <<
" --- " 329 <<
" " << setw(w) <<
" --- " 330 <<
" " << setw(w) <<
" failed " 331 <<
" " << setw(40) <<
" nan_or_inf in calc" 337 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::out_of_range,
"Point Not Valid." );
343 theta_kp1 = CalculateTheta_k(c_iq, h_iq, +1);
346 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
349 out <<
"|" << setw(w) << alpha_k
350 <<
" " << setw(w) << f_iq.get_k(+1)
351 <<
" " << setw(w) << theta_kp1;
354 accepted = CheckFilterAcceptability(f_iq.get_k(+1), theta_kp1, s);
357 if( !accepted && static_cast<int>(olevel) >=
static_cast<int>(PRINT_ALGORITHM_STEPS) )
359 out <<
" " << setw(w) <<
"failed" 360 <<
" " << setw(40) <<
"Unacceptable to filter" 367 if (theta_kp1 > theta_max_) {
370 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
371 out <<
" " << setw(w) <<
"failed" 372 <<
" " << setw(40) <<
"theta_kp1 > theta_max" 383 if (ShouldSwitchToArmijo(Gf_t_dk, alpha_k, theta_k, theta_small))
385 accepted = CheckArmijo(Gf_t_dk, alpha_k, f_iq);
388 if(static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
391 { out <<
" " << setw(w) <<
"accepted"; }
393 { out <<
" " << setw(w) <<
"failed"; }
395 out <<
" " << setw(40) <<
"Switch Cond. Holds (Armijo)" <<
"|" << std::endl;
400 accepted = CheckFractionalReduction(f_iq, gamma_f_used, theta_kp1, theta_k);
402 { augment_filter =
true; }
405 if(static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) )
408 { out <<
" " << setw(w) <<
"accepted"; }
410 { out <<
" " << setw(w) <<
"failed"; }
412 out <<
" " << setw(40) <<
"Fraction Reduction (! Switch Cond )" <<
"|" << std::endl;
422 alpha_k = alpha_k*back_track_frac_;
423 UpdatePoint(s.d().get_k(0), alpha_k, x_iq, f_iq, c_iq, h_iq, *nlp_);
432 if(static_cast<int>(olevel) >=
static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
434 out <<
"\nPoint was accepted - augmenting the filter ...\n";
436 out <<
"Point was accepted - did NOT augment filter.\n";
439 if (augment_filter) {
440 AugmentFilter( gamma_f_used, f_iq.get_k(+1), theta_kp1, s, olevel, out );
458 ,
"FilterLineSearchFailure : Should go to restoration" 462 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_VECTORS) )
464 out <<
"\nx_kp1 =\n" << x_iq.get_k(+1);
466 { out <<
"\nc_kp1 =\n" << c_iq->get_k(+1); }
468 { out <<
"\nh_kp1 =\n" << h_iq->get_k(+1); }
471 #if defined(FILTER_DEBUG_OUT) 472 std::ofstream fout(
"filter_out.xml", std::ofstream::out | std::ostream::app);
473 fout <<
" <FilterIteration iter=\"" << s.
k() <<
"\">" << std::endl;
474 fout <<
" <SelectedPoint alpha=\"" << alpha_k
475 <<
"\" f=\"" << f_iq.get_k(+1)
476 <<
"\" theta=\"" << theta_kp1
477 <<
"\" />" << std::endl;
480 fout <<
" <Filter>" << std::endl;
482 IterQuantityAccess<Filter_T>& filter_iq = filter_(s);
483 if (filter_iq.updated_k(0))
485 Filter_T& current_filter = filter_iq.get_k(0);
487 Filter_T::iterator entry = current_filter.begin();
488 entry != current_filter.end();
492 fout <<
" <FilterPoint iter=\"" << entry->iter
493 <<
"\" f=\"" << entry->f
494 <<
"\" theta=\"" << entry->theta <<
">" << std::endl;
499 fout <<
" <FilterNotUpdated/>" << std::endl;
502 fout <<
" </Filter>" << std::endl;
506 fout <<
" <AlphaCurve>" << std::endl;
507 value_type alpha_tmp = 1.0;
508 for (
int i = 0; i < 10 || alpha_tmp > alpha_k; ++i)
510 UpdatePoint(s.d().get_k(0), alpha_tmp, x_iq, f_iq, c_iq, h_iq, *nlp_);
511 if (ValidatePoint(x_iq, f_iq, c_iq, h_iq,
false))
513 value_type theta = CalculateTheta_k(c_iq, h_iq, +1);
514 fout <<
" <AlphaPoint " 515 <<
"alpha=\"" << alpha_tmp <<
"\" " 516 <<
"f=\"" << f_iq.get_k(+1) <<
"\" " 517 <<
"theta=\"" << theta <<
">" << std::endl;
520 alpha_tmp=alpha_tmp*back_track_frac_;
524 UpdatePoint(s.d().get_k(0), alpha_k, x_iq, f_iq, c_iq, h_iq, *nlp_);
526 fout <<
" </AlphaCurve>" << std::endl;
528 fout <<
" </FilterIteration" << std::endl;
539 ,
poss_type assoc_step_poss, std::ostream& out,
const std::string& L
543 << L <<
"*** Filter line search method\n" 544 << L <<
"# Assumes initial d_k & alpha_k (0-1) is known and\n" 545 << L <<
"# x_kp1, f_kp1, c_kp1 and h_kp1 are calculated for that alpha_k\n" 546 << L <<
"Gf_t_dk = <Gf,dk>\n" 547 << L <<
"theta_k = norm_1(c_k)/c_k.dim()\n" 548 << L <<
"theta_small = theta_small_fact*max(1.0,theta_k)\n" 549 << L <<
"if f_min != F_MIN_UNBOUNDED then\n" 550 << L <<
" gamma_f_used = gamma_f * (f_k-f_min)/theta_k\n" 553 << L <<
" gamma_f_used = gamma_f\n" 555 << L <<
"if Gf_t_dk < 0 then\n" 556 << L <<
" alpha_min = min(gamma_theta, gamma_f_used*theta_k/(-Gf_t_dk))\n" 557 << L <<
" if theta_k <= theta_small then\n" 558 << L <<
" alpha_min = min(alpha_min, delta_*(theta_k^s_theta)/((-Gf_t_dk)^s_f))\n" 561 << L <<
" alpha_min = gamma_theta\n" 563 << L <<
"alpha_min = alpha_min*gamma_alpha\n" 564 << L <<
"# Start the line search\n" 565 << L <<
"accepted = false\n" 566 << L <<
"augment = false\n" 567 << L <<
"while alpha > alpha_min and accepted = false then\n" 568 << L <<
" accepted = true" 569 << L <<
" if any values in x_kp1, f_kp1, c_kp1, h_kp1 are nan or inf then\n" 570 << L <<
" accepted = false\n" 572 << L <<
" # Check filter\n" 573 << L <<
" if accepted = true then\n" 574 << L <<
" theta_kp1 = norm_1(c_kp1)/c_kp1.dim()\n" 575 << L <<
" for each pt in the filter do\n" 576 << L <<
" if theta_kp1 >= pt.theta and f_kp1 >= pt.f then\n" 577 << L <<
" accepted = false\n" 578 << L <<
" break for\n" 582 << L <<
" #Check Sufficient Decrease\n" 583 << L <<
" if accepted = true then" 584 << L <<
" # if switching condition is satisfied, use Armijo on f\n" 585 << L <<
" if theta_k < theta_small and Gf_t_dk < 0 and\n" 586 << L <<
" ((-Gf_t_dk)^s_f)*alpha_k < delta*theta_k^s_theta then\n" 587 << L <<
" if f_kp1 <= f_k + eta_f*alpha_k*Gf_t_dk then\n" 588 << L <<
" accepted = true\n" 591 << L <<
" # Verify factional reduction\n" 592 << L <<
" if theta_kp1 < (1-gamma_theta)*theta_k or f_kp1 < f_k - gamma_f_used*theta_k then\n" 593 << L <<
" accepted = true\n" 594 << L <<
" augment = true\n" 598 << L <<
" if accepted = false then\n" 599 << L <<
" alpha_k = alpha_k*back_track_frac\n" 600 << L <<
" x_kp1 = x_k + alpha_k * d_k\n" 601 << L <<
" f_kp1 = f(x_kp1)\n" 602 << L <<
" c_kp1 = c(x_kp1)\n" 603 << L <<
" h_kp1 = h(x_kp1)\n" 605 << L <<
"end while\n" 606 << L <<
"if accepted = true then\n" 607 << L <<
" if augment = true then\n" 608 << L <<
" Augment the filter (use f_with_boundary and theta_with_boundary)\n" 611 << L <<
" goto the restoration phase\n" 615 bool LineSearchFilter_Step::ValidatePoint(
616 const IterQuantityAccess<VectorMutable>& x,
617 const IterQuantityAccess<value_type>& f,
618 const IterQuantityAccess<VectorMutable>* c,
619 const IterQuantityAccess<VectorMutable>* h,
620 const bool throw_excpt
624 using AbstractLinAlgPack::assert_print_nan_inf;
626 if (assert_print_nan_inf(x.get_k(+1),
"x", throw_excpt, NULL)
627 || assert_print_nan_inf(f.get_k(+1),
"f", throw_excpt, NULL)
628 || (!c || assert_print_nan_inf(c->get_k(+1),
"c", throw_excpt, NULL))
629 || (!h || assert_print_nan_inf(h->get_k(+1),
"c", throw_excpt, NULL)))
636 bool LineSearchFilter_Step::CheckFilterAcceptability(
638 const value_type theta,
639 const AlgorithmState& s
642 bool accepted =
true;
644 const IterQuantityAccess<Filter_T>& filter_iq = filter_(s);
646 if (filter_iq.updated_k(-1))
648 const Filter_T ¤t_filter = filter_iq.get_k(-1);
651 Filter_T::const_iterator entry = current_filter.begin();
652 entry != current_filter.end();
656 if (f >= entry->f && theta >= entry->theta)
667 bool LineSearchFilter_Step::CheckArmijo(
668 const value_type Gf_t_dk,
669 const value_type alpha_k,
670 const IterQuantityAccess<value_type>& f_iq
673 bool accepted =
false;
676 double f_kp1 = f_iq.get_k(+1);
677 double f_k = f_iq.get_k(0);
678 double lhs = f_k - f_kp1;
679 double rhs = -eta_f_*alpha_k*Gf_t_dk;
689 bool LineSearchFilter_Step::CheckFractionalReduction(
690 const IterQuantityAccess<value_type>& f_iq,
691 const value_type gamma_f_used,
692 const value_type theta_kp1,
693 const value_type theta_k
696 bool accepted =
false;
697 if (theta_kp1 <= (1-gamma_theta_)*theta_k
698 || f_iq.get_k(+1) <= f_iq.get_k(0)-gamma_f_used*theta_k )
706 void LineSearchFilter_Step::UpdatePoint(
707 const VectorMutable& d,
708 const value_type alpha,
709 IterQuantityAccess<VectorMutable> &x,
710 IterQuantityAccess<value_type>& f,
711 IterQuantityAccess<VectorMutable>* c,
712 IterQuantityAccess<VectorMutable>* h,
716 using AbstractLinAlgPack::assert_print_nan_inf;
717 VectorMutable& x_kp1 = x.set_k(+1);
719 Vp_StV( &x_kp1, alpha, d);
721 if (assert_print_nan_inf(x_kp1,
"x",
true, NULL))
724 nlp.unset_quantities();
725 nlp.set_f( &f.set_k(+1) );
726 if (c) nlp.set_c( &c->set_k(+1) );
728 if (c) nlp.calc_c( x_kp1,
false );
729 nlp.unset_quantities();
733 value_type LineSearchFilter_Step::CalculateAlphaMin(
734 const value_type gamma_f_used,
735 const value_type Gf_t_dk,
736 const value_type theta_k,
737 const value_type theta_small
740 value_type alpha_min = 0;
744 alpha_min = MIN(gamma_theta_, gamma_f_used*theta_k/(-Gf_t_dk));
745 if (theta_k <= theta_small)
747 value_type switch_bound = delta_*pow(theta_k, s_theta_)/pow(-Gf_t_dk,s_f_);
748 alpha_min = MIN(alpha_min, switch_bound);
753 alpha_min = gamma_theta_;
755 return alpha_min * gamma_alpha_;
758 value_type LineSearchFilter_Step::CalculateTheta_k(
759 const IterQuantityAccess<VectorMutable>* c,
760 const IterQuantityAccess<VectorMutable>* h,
764 value_type theta = 0.0;
766 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::out_of_range,
"Error, do not support inequalities yet" );
769 const Vector &c_k = c->get_k(k);
770 theta += ( c_k.norm_1() / c_k.dim() );
775 value_type LineSearchFilter_Step::CalculateGammaFUsed(
776 const IterQuantityAccess<value_type> &f,
777 const value_type theta_k,
778 const EJournalOutputLevel olevel,
783 if((
int)olevel >= static_cast<int>(PRINT_ALGORITHM_STEPS))
784 out <<
"\nf_min==F_MIN_UNBOUNDED: Setting gamma_f_used = gamma_f = "<<gamma_f()<<
".\n";
787 const value_type f_k = f.get_k(0);
788 if( f_k < f_min() ) {
789 if((
int)olevel >= static_cast<int>(PRINT_ALGORITHM_STEPS))
790 out <<
"\nWarning!!! f_k = "<<f_k<<
" < f_min = "<<f_min()<<
"! Setting gamma_f_used = gamma_f = "<<gamma_f()<<
".\n";
793 const value_type gamma_f_used = gamma_f() * ( f_k - f_min() ) / theta_k;
794 if((
int)olevel >=
static_cast<int>(PRINT_ALGORITHM_STEPS))
795 out <<
"\nf_min = "<<f_min()<<
"!=F_MIN_UNBOUNDED: Setting gamma_f_used = gamma_f * (f_k - f_min)/theta_k = " 796 <<gamma_f()<<
" * ("<<f_k<<
" - "<<f_min()<<
")/"<<theta_k<<
" = "<<gamma_f_used <<
".\n";
800 bool LineSearchFilter_Step::ShouldSwitchToArmijo(
801 const value_type Gf_t_dk,
802 const value_type alpha_k,
803 const value_type theta_k,
804 const value_type theta_small
807 if (theta_k < theta_small && Gf_t_dk < 0) {
808 if (pow(-Gf_t_dk, s_f_)*alpha_k - delta_*pow(theta_k, s_theta_) > 0) {
819 IterQuantityAccess<Filter_T>& filter_iq = filter_(s);
821 if (!filter_iq.updated_k(0))
823 if (filter_iq.updated_k(-1))
826 filter_iq.set_k(0,-1);
837 void LineSearchFilter_Step::AugmentFilter(
838 const value_type gamma_f_used,
840 const value_type theta,
842 const EJournalOutputLevel olevel,
850 f_with_boundary = f-gamma_f_used*theta,
851 theta_with_boundary = (1.0-gamma_theta())*theta;
853 if(static_cast<int>(olevel) >=
static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
854 out <<
"\nAugmenting the filter with the point:" 855 <<
"\n f_with_boundary = f_kp1 - gamma_f_used*theta_kp1 = "<<f<<
" - "<<gamma_f_used<<
"*"<<theta<<
" = " <<f_with_boundary
856 <<
"\n theta_with_boundary = (1-gamma_theta)*theta_kp1 = (1-"<<gamma_theta()<<
")*"<<theta<<
" = "<<theta_with_boundary
861 Filter_T& current_filter = filter_(s).get_k(0);
864 current_filter.remove_if(
865 RemoveFilterEntryPred(
866 f_with_boundary, theta_with_boundary,
867 as<int>(olevel) >= as<int>(PRINT_ALGORITHM_STEPS)
868 ? Teuchos::rcpFromRef(out) : Teuchos::null
873 current_filter.push_front(FilterEntry(f_with_boundary, theta_with_boundary, s.
k()));
~LineSearchFilter_Step()
Destructor.
void Vp_StV(VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
rSQP Algorithm control class.
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
virtual std::ostream & journal_out() const
Thrown if a line search failure occurs.
Reduced space SQP state encapsulation interface.
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
AlgorithmTracker & track()
static value_type F_MIN_UNBOUNDED
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr