Changeset 1223

Show
Ignore:
Timestamp:
08/18/08 11:31:17 (3 months ago)
Author:
dmitrey.kroshko
Message:

minor changes in tests/nlp1.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openopt/scikits/openopt/tests/nlp1.py

    r1105 r1223  
    2121 
    2222    hp = 2 
    23     h1 = lambda x: 1e2*(x[-1]-13)**hp 
     23    h1 = lambda x: (x[-1]-13)**hp 
    2424    h2 = lambda x: (x[-2]-17)**hp 
    2525    h = [h1, h2] 
     
    2828    def dh(x): 
    2929        r = zeros((2, n)) 
    30         r[0, -1] = 1e2*hp*(x[-1]-13)**(hp-1) 
     30        r[0, -1] = hp*(x[-1]-13)**(hp-1) 
    3131        r[1, -2] = hp*(x[-2]-17)**(hp-1) 
    3232        return r 
     
    4949    #solvers = ['ipopt', 'ralg','scipy_cobyla'] 
    5050    solvers = ['ralg','scipy_slsqp', 'ipopt'] 
     51    solvers = [ 'ralg', 'scipy_slsqp'] 
    5152    solvers = [ 'ralg'] 
    5253    ######################################################## 
     
    6364 
    6465if __name__ == '__main__': 
    65     isPassed, r, p = test(iprint= -1) 
     66    isPassed, r, p = test(iprint= 10, plot=0) 
     67    assert isPassed