Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sage: from FuncDesigner import *
- sage: x = oovar()
- sage: f = (sin(x+5000000)-cos(x+5000000)) / (x+5000000)
- ...
- ...
- sage: startPoint = {x:0.1}
- sage: S = oosystem()
- sage: S &= [x>=0, x<=10000000]
- sage: r = S.minimize(f, startPoint, solver='interalg', fTol = 0.0000000001, iprint = 0)
- sage: print('minimum value %e at point %e' %(r.ff, r(x)))
- ------------------------- OpenOpt 0.37 -------------------------
- solver: interalg problem: unnamed type: NLP goal: minimum
- iter objFunVal
- 0 -1.753e-07
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement