~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to lib/src/Base/Optim/Cobyla/Cobyla.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-11-18 06:32:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118063222-pa0qncclrerrqkg2
Tags: 0.12.2-1
* New upstream release
* Bug fix: "New upstream release available (0.12.2)", thanks to Jerome
  Robert (Closes: #506005).
* Applied patch by J. Robert.
* debian/control: build-depends on libxml2

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
21
 *
22
22
 *  @author: $LastChangedBy: dutka $
23
 
 *  @date:   $LastChangedDate: 2008-05-21 11:21:38 +0200 (mer, 21 mai 2008) $
24
 
 *  Id:      $Id: Cobyla.cxx 815 2008-05-21 09:21:38Z dutka $
 
23
 *  @date:   $LastChangedDate: 2008-09-13 22:37:56 +0200 (sam 13 sep 2008) $
 
24
 *  Id:      $Id: Cobyla.cxx 929 2008-09-13 20:37:56Z dutka $
25
25
 */
26
26
#include "Cobyla.hxx"
27
27
#include "algocobyla.h"
52
52
       *         and a level value
53
53
       */
54
54
      Cobyla::Cobyla(const SpecificParameters & specificParameters,
55
 
                     const NumericalMathFunction & levelFunction):
56
 
        NearestPointAlgorithmImplementation(levelFunction),
 
55
                     const NumericalMathFunction & levelFunction,
 
56
                     const Bool verbose):
 
57
        NearestPointAlgorithmImplementation(levelFunction, verbose),
57
58
        specificParameters_(specificParameters)
58
59
      {
59
60
        // Nothing to do
76
77
        NumericalScalar rhoBeg(specificParameters_.getRhoBeg());
77
78
        NumericalScalar rhoEnd(getMaximumAbsoluteError());
78
79
        int maxFun(getMaximumIterationsNumber() * x.getDimension());
79
 
        cobyla_message message(COBYLA_MSG_INFO);
 
80
        cobyla_message message((getVerbose() ? COBYLA_MSG_INFO : COBYLA_MSG_NONE));
80
81
 
81
82
        /*
82
83
         * cobyla : minimize a function subject to constraints