Code Monkey home page Code Monkey logo

Comments (2)

omegaiota avatar omegaiota commented on July 21, 2024

It’s a good idea to try initializing from a neighborhood close to ground truth and see if optimization can progress. Can you give me more details for your experiments? What was the target k and what were the initial values you tried? What were the initial and final loss? Have you tried different step size for the optimizer?

from diffcloth.

BBBBBbruce avatar BBBBBbruce commented on July 21, 2024

Thanks for the reply, to further address my question:

My question is why wind force can be optimised while stiffness cannot.

To answer your questions:

  1. I tried with initial guesses with 1019, 553, 2609, 3148, and the ground truth is 550.
  2. The losses initially 13 and further drops below 0.2, but this is caused of the wind force, since the k is barely moving. If I turn off the wind optimisation, the loss would be originated around 0.5, which should be good.
  3. I didnt try different step size for the BFGS solver because it seems like you used the default settings(I didnt find any part of code trying to modify this), where the step is generated between 1e-20 and 1e20

Also, I am not sure if the target K should be the same as reference, since for a backward problem, there should exist multiple solutions. Especially for an energy decaying system.

What confuses me is that all of my attempts have a very similar behaviour -- all of them are not trying to converge. In another words, this is saying all of my attempts could be a solution, but that is not likely the reason, so my best guess is that stiffness is not effective in this experiment.

Therefore, I also tried with the dress demo with default settings. The initial loss is 3.6 and find loss is 2.7 which takes 27 iterations. However, this experiment is to optimise the bending stiffness, but the behaviour of K are similar.

K density
Initial Guess 4.5456 0.96
Final Guess 4.547 0.6468
Ground truth 2 0.01

Furthermore, as I mentioned previously, when I turned off the wind, the optimisation process is terminated at first iteration due to the one-iteration condition of BFGS. I wonder whether this implies optimisation failure? Since BFGS couldnt find the next possible guess.

from diffcloth.

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.