mailr18273 - /trunk/specific_fns/n_state_model.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 23, 2013 - 16:34:
Author: bugman
Date: Wed Jan 23 16:34:03 2013
New Revision: 18273

URL: http://svn.gna.org/viewcvs/relax?rev=18273&view=rev
Log:
Fix for the assembly of the N-state model linear constraints.

These were not set up correctly when the populations and paramagnetic 
position are optimised
together.


Modified:
    trunk/specific_fns/n_state_model.py

Modified: trunk/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_fns/n_state_model.py?rev=18273&r1=18272&r2=18273&view=diff
==============================================================================
--- trunk/specific_fns/n_state_model.py (original)
+++ trunk/specific_fns/n_state_model.py Wed Jan 23 16:34:03 2013
@@ -770,7 +770,7 @@
             # Add the inequalities for pN.
             A.append(zero_array * 0.0)
             A.append(zero_array * 0.0)
-            for i in range(pop_start, self._param_num()):
+            for i in range(pop_start, pop_start+cdp.N-1):
                 A[-2][i] = -1.0
                 A[-1][i] = 1.0
             b.append(-1.0 / scaling_matrix[i, i])




Related Messages


Powered by MHonArc, Updated Wed Jan 23 17:00:02 2013