Changeset 1159
- Timestamp:
- 07/23/08 15:20:19 (4 months ago)
- Files:
-
- trunk/openopt/scikits/openopt/tests/chain.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openopt/scikits/openopt/tests/chain.py
r1155 r1159 30 30 31 31 32 MaxForces *= 1.0 132 MaxForces *= 1.001 33 33 34 34 lengths = 5*ones(n)+cos(arange(n))#array([4, 3, 1, 2]) … … 84 84 r['ly'] = ry 85 85 r['forceConstraint'] = ForceThreshold 86 if ForceThreshold > contol: # chain will be broken86 if ForceThreshold > 0: # chain will be broken 87 87 r['broken'] = True 88 88 else: … … 111 111 def f(x): 112 112 r = ooFuncs[-1]()['lx'] 113 if isnan(r): r = inf114 113 return r 115 114 116 p = NLP(f, x0, c=c, plot=0, maxIter = 1e4, contol = contol, iprint=1, maxFunEvals = 1e10)115 p = NLP(f, x0, c=c, goal = 'max', plot=1, maxIter = 1e4, contol = contol, iprint=1, maxFunEvals = 1e10) 117 116 r = p.solve('ralg') 118 117 … … 121 120 #solver: ralg problem: unnamed goal: minimum 122 121 # iter objFunVal log10(maxResidual) 123 # 0 inf 1.85122 # 0 nan 2.01 124 123 # ... 125 # 122 1.033e+02 -2.10124 # 122 1.854e+02 -2.10 126 125 #istop: 4 (|| F[k] - F[k-1] || < ftol) 127 #Solver: Time Elapsed = 9 6.74 CPU Time Elapsed = 96.11128 #objFunValue: 1 03.2939(feasible, max constraint = 0.008)126 #Solver: Time Elapsed = 91.98 CPU Time Elapsed = 91.3 127 #objFunValue: 185.4275 (feasible, max constraint = 0.008)
