Author: bugman Date: Mon May 3 00:57:22 2010 New Revision: 11174 URL: http://svn.gna.org/viewcvs/relax?rev=11174&view=rev Log: Bug fix for a very long standing bug! This is the 'population' N-state model bug whereby the last probability, which is not a parameter, has a negative value. The constraint was not being scaled! So the constraint was actually a probability 0 <= pN <= 100!!! Modified: 1.3/specific_fns/n_state_model.py Modified: 1.3/specific_fns/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=11174&r1=11173&r2=11174&view=diff ============================================================================== --- 1.3/specific_fns/n_state_model.py (original) +++ 1.3/specific_fns/n_state_model.py Mon May 3 00:57:22 2010 @@ -612,7 +612,7 @@ for i in xrange(pop_start, self._param_num()): A[-2][i] = -1.0 A[-1][i] = 1.0 - b.append(-1.0) + b.append(-1.0 / scaling_matrix[i, i]) b.append(0.0) # Convert to numpy data structures.