Constrains

From: Patrick Dupre <pd520_at_york.ac.uk>
Date: Wed, 29 Oct 2008 00:48:42 +0000


Hello,

I am uisng minuit2 and FunctionMinimum.
To define my function I use the operator () but it is a virtual method:
double operator () (const std::vector<double>&) const ; and I cannot modify the parameter inside this method, whilst I need to put a constrain to some of them.
For example par [1] = 1 - par [2].
I let par [1] be variable and fix par [2]. How can I put a constrain on some parameters ?

Thank.

-- 
---

==========================================================================
Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: pd520_at_york.ac.uk
==========================================================================
Received on Wed Oct 29 2008 - 01:48:56 CET

This archive was generated by hypermail 2.2.0 : Wed Oct 29 2008 - 05:50:03 CET