Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-1723

Vary command does not use correct initial guess.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Vary Command (FRC-2)
    • Labels:
      None
    • Environment:

      Operating System: Other
      Platform: PC

      Description

      Created an attachment (id=877)
      WMAP.script

      11-24-09

      In this script, there is a targeter inside of a for loop. The premise of the script is to use the solution of the first targeting loop as the initial guess to the second targeting loop.. and so on. The issue is in the vary command, which looks like this:

      Vary DefaultDC(deltaV.Element2 = dvGuess , {Perturbation = 0.000001.....

      Notice in the script that dvGuess is set to .0001 before the loop starts. Once the first targeting loop converges, dvGuess is set to that converged value. So, the second time through the for loop the targeter should use the new value for dvGuess as the initial guess. However, inspecting the last two lines in the report file, you can see that while dvGuess was reset, it was not used by the vary command.

      There is a crash that occurs when changing the LowerBound, UpperBound, and MaxStep in the Vary command via the script and rerunning, but it is difficult to duplicate.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            shughes Steven Hughes added a comment -

            Attachment WMAPGUITest.script has been added with description: WMAP.script

            Show
            shughes Steven Hughes added a comment - Attachment WMAPGUITest.script has been added with description: WMAP.script
            Hide
            shughes Steven Hughes added a comment -

            I've figured out how to duplicate the crash and will check it in separately.

            Show
            shughes Steven Hughes added a comment - I've figured out how to duplicate the crash and will check it in separately.
            Hide
            djcinsb Darrel Conway added a comment -

            Added a handler for variable updates between Targeter runs in the Vary command.

            Show
            djcinsb Darrel Conway added a comment - Added a handler for variable updates between Targeter runs in the Vary command.
            Hide
            jjkparker Joel Parker added a comment -

            Closing all issues with "Resolved" status in Bugzilla

            Show
            jjkparker Joel Parker added a comment - Closing all issues with "Resolved" status in Bugzilla

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: