lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] solve-related durations


From: Greg Chicares
Subject: Re: [lmi] solve-related durations
Date: Mon, 16 Mar 2009 03:04:34 +0000
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

On 2008-08-24 16:37Z, Greg Chicares wrote:
> On 2008-08-23 14:27Z, Wendy Boutin wrote:
>> I think there's an issue with the new solve-related
>> age and time inputs.
>> 
>> Alt F N I
>> SolveEePrem
>> 'ToAge' type in a different age and the default
>> age is automatically re-displayed instead of the
>> entered age. I can re-enter the age and it will
>> stick after another try, or two.
> 
> Index: input_harmonization.cpp
> ===================================================================
> RCS file: /sources/lmi/lmi/input_harmonization.cpp,v
> retrieving revision 1.73
> diff -U 3 -r1.73 input_harmonization.cpp
> --- input_harmonization.cpp   13 Aug 2008 01:31:18 -0000      1.73
> +++ input_harmonization.cpp   24 Aug 2008 15:41:25 -0000
> @@ -968,9 +968,11 @@
>      // INPUT !! The minimum 'SolveEndYear' and 'SolveTargetYear' set
>      // here mean that a solve to or at retirement is a request, not a
>      // command.
> +#if 0 // http://lists.nongnu.org/archive/html/lmi/2008-08/msg00036.html
>      SolveBeginYear .minimum_and_maximum(0                     , 
> years_to_maturity());
>      SolveEndYear   .minimum_and_maximum(SolveBeginYear.value(), 
> years_to_maturity());
>      SolveTargetYear.minimum_and_maximum(SolveBeginYear.value(), 
> years_to_maturity());
> +#endif // 0
> 
>      // INPUT !! Temporarily, existing -'Time' names are used where
>      // -'Age' names would be clearer.
> @@ -978,9 +980,11 @@
>      SolveEndTime   .enable(actually_solving && mce_solve_to_age   == 
> DeprecatedSolveToWhich);
>      SolveTargetTime.enable(actually_solving && mce_target_at_age  == 
> DeprecatedSolveTgtAtWhich && mce_solve_for_target == SolveTarget);
> 
> +#if 0 // http://lists.nongnu.org/archive/html/lmi/2008-08/msg00036.html
>      SolveBeginTime .minimum_and_maximum(issue_age()           , 
> maturity_age());
>      SolveEndTime   .minimum_and_maximum(SolveBeginTime.value(), 
> maturity_age());
>      SolveTargetTime.minimum_and_maximum(SolveBeginTime.value(), 
> maturity_age());
> +#endif // 0
> 
>      SolveTarget.enable(actually_solving);
>      SolveTarget.allow(mce_solve_for_endt  , actually_solving);

That patch didn't merely prevent the spincontrols from enforcing
"Solve...Time" limits--it removed those limits from the program
altogether. As a result:

  alt-F N I
  solve for...anything
  from year 100
  to year 100
  at year 100

Assertion 'SolveEndYear_ <= BasicValues::GetLength()' failed.
[file /lmi/src/lmi/ihs_avsolve.cpp, line 319]

Hence the 20090316T0303Z change.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]