- Ajuda do Scilab
- Otimização e Simulação
- 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
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function
optimbase_get
Returns the value for the given key.
Calling Sequence
value = optimbase_set(opt, key)
Argument
- opt
The object of TOPTIM type (tlist).
- key
A string, the name of the key to set.
- value
the value in fonction of the given key.
Description
The optimbase_get
function returns the value for the given key.
If the key is unknown, this function generates an error.
The list of available keys is the same as the optimbase_set function:
- -funevals
The number of function evaluations is a 1-by-1 matrix of doubles, positive, integer value.
- -iterations
The number of iterations is a 1-by-1 matrix of doubles, positive, integer value.
- -xopt
The x optimum.
- -fopt
The optimum cost function value.
- -historyxopt
An array, with nbiter values, containing the history of x during the iterations.
This array is available after optimization if the history storing was enabled with the
-storehistory
option.- -historyfopt
An array, with nbiter values, containing the history of the function value during the iterations.
This array is available after optimization if the history storing was enabled with the
-storehistory
option.- -fx0
The function value for the initial guess.
- -status
A string containing the status of the optimization.
- -logstartup
A 1-by-1 matrix of booleans. Set to %t when the logging is started up (default
-logstartup
= %f).
Example
opt = optimbase_new(); // Set optimum opt = optimbase_set(opt,"-xopt",[1.0 1.0]) ; // Get optimum val = optimbase_get(opt, "-xopt") // Set function value at optimum opt = optimbase_set(opt,"-fopt",1.0); // Get function value at optimum val = optimbase_get(opt, "-fopt") // Set status opt = optimbase_set(opt,"-status","maxiter"); // Get status val = optimbase_get(opt, "-status") opt = optimbase_destroy(opt);
See Also
- optimbase_set — Set the value for the given key.
- optimbase_cget — Returns the value for the given key.
- optimbase_histget — Returns the history value.
Report an issue | ||
<< optimbase_function | Optimization base | optimbase_hasbounds >> |