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

  • Context: MATLAB 
  • Thread starter Thread starter sunny2010100
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion centers on an error encountered in MATLAB related to the use of the 'optimset' function. The user attempted to set options with 'medium-scale', which is not a valid parameter, as only 'LargeScale' is recognized. The correct usage is demonstrated with 'optimset('LargeScale','on')', which successfully returns a structure of optimization settings. This highlights the importance of using valid parameters in MATLAB's optimization functions.

PREREQUISITES
  • Familiarity with MATLAB programming language
  • Understanding of optimization functions in MATLAB
  • Knowledge of the 'optimset' function and its parameters
  • Basic troubleshooting skills in coding
NEXT STEPS
  • Research the complete list of parameters for the 'optimset' function in MATLAB documentation
  • Learn about different optimization algorithms available in MATLAB
  • Explore error handling techniques in MATLAB to manage function errors
  • Investigate the differences between 'LargeScale' and other optimization settings in MATLAB
USEFUL FOR

MATLAB users, data scientists, and engineers involved in optimization tasks who need to troubleshoot and effectively utilize MATLAB's optimization functions.

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 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K