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

Vary Command Validation Issues

    Details

      Description

      Some scripts which should yield a GMAT error do not. (e.g., GMAT crashes instead of gracefully indicating an error)
      %%%%%%%%%%%%%%%%%%%%%%%%%%%
      In example below, Vary command has empty argument.

      Create VF13ad SQP1;   %get same result if use fmincon object here
      SQP1.MaximumIterations = 70;
      Create Variable x y Circle
      BeginMissionSequence;
      Optimize SQP1;
         Vary SQP1(x = 1);
         Vary SQP1();
         Circle = x*x + y*y
         NonlinearConstraint SQP1(Circle = 1);      
        Minimize SQP1(y);
      EndOptimize; 
      
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              dcooley Steve Cooley added a comment -

              To avoid submitting a ticket for a similar issue, I note that the following script crashes GMAT. (The Achieve command has an empty argument)

              Create Variable x y
              Create DifferentialCorrector aDC
              BeginMissionSequence
              Target aDC
              Vary aDC(x = 5)
              y = 3*x^3 + 2*x^2 - 4*x + 8
              Achieve aDC()
              EndTarget

              Show
              dcooley Steve Cooley added a comment - To avoid submitting a ticket for a similar issue, I note that the following script crashes GMAT. (The Achieve command has an empty argument) Create Variable x y Create DifferentialCorrector aDC BeginMissionSequence Target aDC Vary aDC(x = 5) y = 3*x^3 + 2*x^2 - 4*x + 8 Achieve aDC() EndTarget
              Hide
              gmat_wcs Wendy Shoan added a comment -

              CCB: P1 R2013a

              Show
              gmat_wcs Wendy Shoan added a comment - CCB: P1 R2013a
              Hide
              djcinsb Darrel Conway added a comment -

              Fixed for the 1/30 build

              Show
              djcinsb Darrel Conway added a comment - Fixed for the 1/30 build
              Hide
              dcooley Steve Cooley added a comment -

              Achieve_Validation_Cmd_Auto series of tests pass.

              Verified (2/6/13 build) that "vary()" gives a syntax error.

              Show
              dcooley Steve Cooley added a comment - Achieve_Validation_Cmd_Auto series of tests pass. Verified (2/6/13 build) that "vary()" gives a syntax error.

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: