MATLAB MATLAB who can help me to solve this question?thanks first

  • Thread starter Thread starter sunny2010100
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion centers around an error encountered in MATLAB when attempting to set optimization options using the `optimset` function. The user receives an error message indicating a missing variable or function due to the incorrect use of 'medium-scale', which is not a valid option. The correct parameter is 'LargeScale', which is confirmed to be functional. The output from `optimset('LargeScale', 'on')` shows various optimization settings, but the absence of 'medium-scale' highlights the need for users to refer to the official MATLAB documentation for valid options. The conversation emphasizes the importance of using correct syntax and available parameters in MATLAB to avoid errors during programming.
sunny2010100
Messages
1
Reaction score
0
MATLAB who can help me to solve this question??thanks first!

after performance,it comes out :

? options = optimset('medium-scale ', 'on');
|
Error: Missing variable or function.

why??
 
Physics news on Phys.org


There is no 'medium-scale', only LargeScale.

Code:
>> optimset('LargeScale','on')

ans = 

                   Display: []
               MaxFunEvals: []
                   MaxIter: []
                    TolFun: []
                      TolX: []
               FunValCheck: []
                 OutputFcn: []
           ActiveConstrTol: []
        NoStopIfFlatInfeas: []
            BranchStrategy: []
           DerivativeCheck: []
               Diagnostics: []
             DiffMaxChange: []
             DiffMinChange: []
         GoalsExactAchieve: []
                GradConstr: []
                   GradObj: []
                   Hessian: []
                  HessMult: []
               HessPattern: []
                HessUpdate: []
           InitialHessType: []
         InitialHessMatrix: []
                  Jacobian: []
                 JacobMult: []
              JacobPattern: []
                LargeScale: 'on'
        LevenbergMarquardt: []
            LineSearchType: []
                  MaxNodes: []
                MaxPCGIter: []
                MaxRLPIter: []
                MaxSQPIter: []
                   MaxTime: []
             MeritFunction: []
                 MinAbsMax: []
       NodeDisplayInterval: []
        NodeSearchStrategy: []
          NonlEqnAlgorithm: []
      PhaseOneTotalScaling: []
            Preconditioner: []
          PrecondBandWidth: []
            RelLineSrchBnd: []
    RelLineSrchBndDuration: []
          ShowStatusWindow: []
                   Simplex: []
                    TolCon: []
                    TolPCG: []
                 TolRLPFun: []
               TolXInteger: []
                  TypicalX: []
 

Similar threads

Replies
5
Views
2K
Replies
9
Views
3K
Replies
5
Views
2K
Replies
4
Views
3K
Replies
5
Views
3K
Replies
4
Views
1K
Replies
2
Views
2K
Back
Top