Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2012
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None
  1. sage: from FuncDesigner import *
  2. sage: x = oovar()
  3. sage: f = (sin(x+5000000)-cos(x+5000000)) / (x+5000000)
  4. ...
  5. ...
  6. sage: startPoint = {x:0.1}
  7. sage: S = oosystem()
  8. sage: S &= [x>=0, x<=10000000]
  9. sage: r = S.minimize(f, startPoint, solver='interalg', fTol = 0.0000000001, iprint = 0)
  10. sage: print('minimum value %e at point %e' %(r.ff, r(x)))
  11. ------------------------- OpenOpt 0.37 -------------------------
  12. solver: interalg problem: unnamed type: NLP goal: minimum
  13. iter objFunVal
  14. 0 -1.753e-07
Advertisement
RAW Paste Data Copied
Advertisement