1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2008-2009 - INRIA - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
// optimbase_cget --
// Get the value for the given key.
// If the key is unknown, generates an error.
//
function value = optimbase_cget (this,key)
select key
case "-verbose" then
value = this.verbose;
case "-verbosetermination" then
value = this.verbosetermination;
case "-function" then
value = this.fun;
case "-method" then
value = this.method;
case "-x0" then
value = this.x0;
case "-maxfunevals" then
value = this.maxfunevals;
case "-maxiter" then
value = this.maxiter;
case "-tolfunabsolute" then
value = this.tolfunabsolute;
case "-tolfunrelative" then
value = this.tolfunrelative;
case "-tolxabsolute" then
value = this.tolxabsolute;
case "-tolxrelative" then
value = this.tolxrelative;
case "-tolxmethod" then
value = this.tolxmethod;
case "-tolfunmethod" then
value = this.tolfunmethod;
case "-outputcommand" then
value = this.outputcommand;
case "-outputcommandarg" then
value = this.outputcommandarg;
case "-numberofvariables" then
value = this.numberofvariables;
case "-storehistory" then
value = this.storehistory;
case "-costfargument" then
value = this.costfargument;
case "-boundsmin" then
value = this.boundsmin;
case "-boundsmax" then
value = this.boundsmax;
case "-nbineqconst" then
value = this.nbineqconst;
case "-logfile" then
value = this.logfile;
case "-withderivatives" then
value = this.withderivatives;
else
errmsg = msprintf(gettext("%s: Unknown key %s") , "optimbase_cget" , key)
error(errmsg)
end
endfunction
|