Scilab-Branch-6.1-GIT
- Справка Scilab
- Optimization and 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
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
optimbase_histget
Returns the history value.
Syntax
value = optimbase_histget(opt, iter, key)
Argument
- opt
The object of TOPTIM type (tlist).
- iter
An integer. The iteration number to get.
- key
A string. The name of the key to query.
- value
A 1-by-1 matrix of doubles. The value to get.
Description
The optimbase_histget
function returns the history value at the given
iteration number 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_histset
:
- -xopt
The x optimum.
- -fopt
The optimum cost function value.
Example
opt = optimbase_new(); opt = optimbase_configure ( opt , "-storehistory" , %t ); opt = optimbase_histset ( opt , 1 , "-xopt" , [1.0 1.0]' ); x0 = optimbase_histget ( opt , 1 , "-xopt" ) fopt = optimbase_get(opt,"-fopt") opt = optimbase_histset ( opt , 1 , "-fopt" , 1.0 ); f0 = optimbase_histget ( opt , 1 , "-fopt" ) opt = optimbase_destroy(opt);
See also
- optimbase_histset — Set the history value at given iteration for the given key.
- optimbase_get — Returns the value for the given key.
- optimbase_cget — Returns the value for the given key.
Report an issue | ||
<< optimbase_hasnlcons | Optimization base | optimbase_histset >> |