Ignore:
Timestamp:
08/04/10 16:07:50 (6 years ago)
Author:
altafang
Message:

Fixing minor things, adjusting termination conditions on tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alta/mystic-0.2a1/tutorial_example_constrained.py

    r361 r373  
    2727 
    2828# Mystic can handle constraints in the form of matrices as well. 
    29 A = [[-1.0,0.0],[0.0,-1.0]] 
    30 b = [0.0,0.0] 
    31 G = [1.0, 1.0] 
    32 h = [1.0] 
    33 from constraint_tools import matrix_to_symbolic 
     29G = [[-1.0,0.0],[0.0,-1.0]] 
     30h = [0.0,0.0] 
     31A = [1.0, 1.0] 
     32b = [1.0] 
     33from mystic.constraint_tools import matrix_to_symbolic 
    3434constraints_string = matrix_to_symbolic(A=A, b=b, G=G, h=h) 
    3535 
     
    5252 
    5353# Let's verify that the constraints actually are satisfied. 
    54 from constraint_tools import verify_constraints_satisfied 
     54from mystic.constraint_tools import verify_constraints_satisfied 
    5555print "Are constraints satisfied?" 
    5656print verify_constraints_satisfied(constraints_string, soln, ndim, tol=1e-7) 
Note: See TracChangeset for help on using the changeset viewer.