Coder Social home page Coder Social logo

compile error about asa_cg HOT 4 OPEN

tesch1 avatar tesch1 commented on August 22, 2024
compile error

from asa_cg.

Comments (4)

xiaoyuanzh avatar xiaoyuanzh commented on August 22, 2024

thx you

from asa_cg.

tesch1 avatar tesch1 commented on August 22, 2024

hi, what os/compiler are you using?

from asa_cg.

xiaoyuanzh avatar xiaoyuanzh commented on August 22, 2024

oh I have solved it!! If I use cpp files, I can complile it correctly.
Currently, I have another question.
I have an optimization problem of about 200 dimensions. All variables have a bound constraint.
But I have a quite complex cost function. It needs some time to calculate the value, so as the gradients.
ASA_CG often need about 300ms(by using computing value and gradient together) to coverage. The optimization needs about 300 times gradient and value evaluation per time.
My aim is to make the alg coverage in 100ms, do you have some suggestions for me? Thanks a lot.
I guess, the program needs a lot of time to do a line search?

from asa_cg.

xiaoyuanzh avatar xiaoyuanzh commented on August 22, 2024

ps:
projected gradient max norm: 1.074079e-01
function value: 7.014731e+00

Total cg iterations: 90
Total cg function evaluations: 341
Total cg gradient evaluations: 274
Total cbb iterations: 17
Total cbb function evaluations: 27
Total cbb gradient evaluations: 18

Total function evaluations: 368
Total gradient evaluations: 292

[ INFO] [1558336214.669389439]: time used 358.547003
[ INFO] [1558336214.669422118]: eval time 63.961200
[ INFO] [1558336214.669436851]: eval time gradient 290.861158
[ INFO] [1558336214.669449877]: opt time 3.724645
I need too much time time to evaluate the gradient, do you have some insight? thx you!

from asa_cg.

Related Issues (2)

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.