Giter Site home page Giter Site logo

Comments (3)

danshapero avatar danshapero commented on June 28, 2024

The visual differences are pretty minute in some typefaces but one of these is a lower-case theta and the other is a capital theta, so I think it should be functioning as advertised. When I run the code as-is, I get the following trace from ROL:

Truncated CG Trust-Region Solver
  iter  value          gnorm          snorm          delta          #fval     #grad     tr_flag   iterCG    flagCG    
  0     1.889343e+03   3.155963e-02                  6.678472e+04   
  1     6.465015e+02   1.940460e-02   6.678472e+04   1.669618e+05   3         2         0         2         3         
  2     6.465015e+02   1.940460e-02   1.669618e+05   1.043511e+04   4         2         2         3         2         
  3     4.715252e+02   1.421254e-02   1.043511e+04   2.608778e+04   5         3         0         1         3         
  ...
  24    1.868435e+01   9.166486e-05   3.796272e+03   9.490679e+03   26        20        0         5         3         
Optimization Terminated with Status: Converged

when I change capital theta to 0.1 I get a different trace:

Truncated CG Trust-Region Solver
  iter  value          gnorm          snorm          delta          #fval     #grad     tr_flag   iterCG    flagCG    
  0     1.889343e+03   3.155963e-02                  6.623245e+04   
  1     7.245687e+02   3.373541e-02   6.623245e+04   1.655811e+05   3         2         0         2         3         
  2     7.245687e+02   3.373541e-02   1.655811e+05   1.034882e+04   4         2         2         20        3         
  3     5.652582e+02   3.751109e-02   1.034882e+04   2.587205e+04   5         3         0         3         3         
... 
  45    7.495780e+01   4.058215e-04   1.671746e+03   5.350215e+20   47        45        0         20        1  

If you're getting different results I wonder if there's a unicode issue? I can lump together Big Theta and L into one variable to avoid this. I had it written this way for the units but maybe I was going overboard.

from icepack.

jrmaddison avatar jrmaddison commented on June 28, 2024

Apologies, I must have scrambled things somewhere when making changes to the example, or made some other silly mistake. After rerunning the code all is well.

from icepack.

danshapero avatar danshapero commented on June 28, 2024

No worries, thanks for giving it a look!

from icepack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.