close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 13 and Version 14 of OfficialTolArchiveNetworkNonLinGloOpt


Ignore:
Timestamp:
Dec 2, 2010, 9:34:34 AM (14 years ago)
Author:
Víctor de Buen Remiro
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OfficialTolArchiveNetworkNonLinGloOpt

    v13 v14  
    113113{{{
    114114#!cpp
    115 //If you sign ==- 1 minimized, and if sign == 1 maximizes
     115//Set sign ==- 1 for minimization, sign == 1 for maximization
    116116  Real sign;         
    117117 
     
    131131  Real id_analyticalClass;
    132132
    133 //Indicates if the gradient known or unknown in an analytical or
    134 //numerical way. Must be one element of
     133//Indicates if the gradient is known analytically or numerically.
     134//Must be an element of
    135135//Set NonLinGloOpt::GradientKnowneledge =
    136136//[[
     
    141141  Real id_useGradient; 
    142142 
    143 //Target function could be a simple Code or a class method of an
    144 //instance owner.
     143//Target function could be a simple Code or a class method of a
     144//particular instance.
    145145// - Real target(Matrix x, Matrix gradient)
    146146// - Set target = [[NameBlock owner, Code method]]
     
    149149  Anything target;
    150150
    151 //Initial values of variables in a column matrix nx1
     151//Initial values of variables in an nx1 column matrix
    152152  Matrix x0;       
    153153
     
    163163//Optimization method.
    164164//It must be an element of NonLinGloOpt::Algorithm
    165 //If is not specified the system will choose one by calling method
     165//If it is not specified the system will choose one by calling method
    166166//select_automatic_algorithm
    167167  Real id_algorithm = ?;
    168168
    169 //Lower bounds of the variables
    170 //It must be a column matrix nx1 with the minimum values of each
    171 //variable or -1/0 when there is unbounded
    172 //If there are no lower bound for any then it's the empty matrix
     169//Lower bounds for the variables
     170//These must be specified by an nx1 column matrix with the minimum value for each
     171//variable, or -1/0 if the variable is not bounded below
     172//If there are no lower bounds at all then it's the empty matrix
    173173  Matrix lower_bounds = Rand(0,0,0,0);
    174174
    175 //Variable upper bounds
    176 //It must be a column matrix nx1 with the minimum values of each
    177 //variable or -1/0 when there is unbounded
    178 //If there are no upper bound for any then it's the empty matrix
     175//Upper bounds for the variables
     176//These must be specified by an nx1 column matrix with the maximum value for each
     177//variable, or -1/0 if the variable is not bounded above
     178//If there are no upper bounds at all then it's the empty matrix
    179179  Matrix upper_bounds = Rand(0,0,0,0);
    180180
    181181//Set of inequality constraints g(x)<=0
    182 //Conjunto de elementos Code o [[NameBlock owner, Code target]] para métodos
    183 //Constraining function could be a simple Code or a class method of an
    184 //instance owner.
     182//Set of Code elements or [[NameBlock owner, Code target]] for methods
     183//Constraining function could be a simple Code or a class method of a
     184//particular instance.
    185185// - Real g (Matrix x, Matrix gradient)
    186186// - Set g = [[NameBlock owner, Code method]]
     
    190190
    191191//Set of equality constraints h(x)<=0
    192 //Conjunto de elementos Code o [[NameBlock owner, Code target]] para métodos
    193 //Constraining function could be a simple Code or a class method of an
    194 //instance owner.
     192//Set of Code elements or [[NameBlock owner, Code target]] for methods
     193//Constraining function could be a simple Code or a class method of a
     194//particular instance.
    195195// - Real h (Matrix x, Matrix gradient)
    196196// - Set h = [[NameBlock owner, Code method]]
     
    200200
    201201//Tolerance for the evaluation of inequality constraints to avoid 
    202 //ronding errors
     202//rounding errors
    203203  Real inequationTolerance = 1E-8;
    204204
    205205//Tolerance for the evaluation of the equality constraints to avoid 
    206 //ronding errors
     206//rounding errors
    207207  Real equationTolerance = 1E-8;
    208208
     
    210210  Real relativeTolerance = 1E-6;
    211211
    212 //Maximum run time of the stopping criteria
     212//Maximum run time for the stopping criteria
    213213  Real maxTime = ?;
    214214
    215 //If verboseEach>0, evaluation of target funciton will be traced
    216 //each the specified number of evaluations.
     215//If verboseEach>0, the evaluation of the target function will be traced
     216//every "verboseEach" evaluations.
    217217  Real verboseEach = 100;
    218218
     
    308308#!cpp
    309309////////////////////////////////////////////////////////////////////////////////
    310 //When a set of constraining functions are part of a parametric family
    311 //of funcitons we can define a class to make an easier definition
     310//When a set of constraining functions is part of a parametric family
     311//of functions we can define a class to facilitate the definition
    312312Class @my_inequation
    313313////////////////////////////////////////////////////////////////////////////////
     
    341341{{{
    342342#!cpp
    343 //Don't forget require the package if it has still no been loaded
     343//Don't forget to load the package if it has not yet been loaded
    344344#Require NonLinGloOpt;
    345345
     
    377377  //Stopping criteria of maximum running time
    378378  Real maxTime = 60;
    379   //Funcitons will be traced each this number of evaluations
     379  //Functions will be traced every "verboseEach" evaluations
    380380  Real verboseEach = 1
    381381]];