Scilab 6.0.0
      
      - Aide de Scilab
- Optimisation et Simulation
- Optimization base
- optimbase_cget
- optimbase_checkbounds
- optimbase_checkcostfun
- optimbase_checkx0
- optimbase_configure
- optimbase_destroy
- optimbase_function
- optimbase_get
- optimbase_hasbounds
- optimbase_hasconstraints
- optimbase_hasnlcons
- optimbase_histget
- optimbase_histset
- optimbase_incriter
- optimbase_isfeasible
- optimbase_isinbounds
- optimbase_isinnonlincons
- optimbase_log
- optimbase_new
- optimbase_outputcmd
- optimbase_outstruct
- overview
- optimbase_proj2bnds
- optimbase_set
- optimbase_stoplog
- optimbase_terminate
      
      Aide de Scilab >> Optimisation et Simulation > Optimization base > optimbase_cget
      
      
    
    
    
    
    
      
  
optimbase_cget
Returns the value for the given key.
Syntax
value = optimbase_cget(opt, key)
Argument
- opt
- The object of TOPTIM type (tlist). 
- key
- A string, the name of the key to query. 
- value
- the value in function of the given key. 
Description
The optimbase_cget function returns the value contained in the 
            key. If the key is unknown, this function generates 
            an error.
To know the list of available keys, go to optimbase_configure help page.
Example
opt = optimbase_new(); // Set number of variables opt = optimbase_configure ( opt , "-numberofvariables" , 10); nbvar = optimbase_cget(opt, "-numberofvariables") // Set initial guess opt = optimbase_configure(opt, "-x0", [-1.2 1.0]'); x0 = optimbase_cget(opt, "-x0") // Set maximum number of iteration opt = optimbase_configure(opt, "-maxiter", 200); value = optimbase_cget(opt, "-maxiter") opt = optimbase_destroy(opt);
See Also
- optimbase_new — Creates a new optimization object.
- optimbase_configure — Configures the current object.
- optimbase_get — Returns the value for the given key.
- optimbase_histget — Returns the history value.
Comments
Add a comment:
Please login to comment this page.