ComputationalScientist
ComputationalScientist
  • Видео 34
  • Просмотров 257 711
Simulated Annealing Algorithm in Python - Travelling Salesperson Problem
I show how the Travelling Salesperson Problem can be solved with the Simulated Annealing Algorithm in Python (I use PyCharm and Anaconda Python).
Sorry, there is no commentary for this tutorial.
Просмотров: 19 567

Видео

Create a random matrix in R (uniform, normal, Poisson, exponential)
Просмотров 1,3 тыс.5 лет назад
Generating a random matrix (uniform, normal, Poisson and exponential) in R is not straightforward. I show a trick in this tutorial. Music by Setuniman at www.freesound.org/people/setuniman/ Other sound effects have been obtained from www.zapsplat.com
Install Python 3.6 on Ubuntu 18 (with Jupyter Notebook) - full guide 3 min.
Просмотров 2,9 тыс.6 лет назад
Anaconda distribution: www.anaconda.com If you want to install additional packages but Ubuntu complains about permissions, run the following two commands: sudo chown -R username /home/username/anaconda3/ sudo chmod -R x /home/username/anaconda3/ Where your username is your username. Music by abett at freesound.org/people/abett/ Sound effects obtained from www.zapsplat.com
Circular Drum Shape Animation in 2D
Просмотров 2396 лет назад
Simulation of the eigenmodes of a circular membrane. I used a 3D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Square Drum Shape Animation in 3D
Просмотров 2276 лет назад
Simulation of the eigenmodes of a square membrane. I used a 3D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Latex and TexStudio installation on Ubuntu 18 - easy method
Просмотров 54 тыс.6 лет назад
If my tutorial helps to solve your problem, please consider supporting my channel with a small donation: www.paypal.me/compsciencetube I needed to reinstall my laptop recently, and I decided to create a tutorial on how Latex and TexStudio can be installed. You will need administrator rights. Commands: sudo apt-get update sudo apt-get install texlive-full Link: www.texstudio.org Music by Setunim...
Square Drum Shape Animation in 2D
Просмотров 1276 лет назад
Simulation of the eigenmodes of a square membrane. I used a 2D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Rectangular Membrane Animation in 3D
Просмотров 3766 лет назад
Simulation of the eigenmodes of a rectangular membrane. I used a 3D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Masked 3D surface plots with holes and smooth edges in Python - workaround
Просмотров 3 тыс.6 лет назад
Matplotlib's 'plot_surface' function can't handle masked arrays properly (either masking with NaNs or using numpy masked arrays). To plot a masked surface with 'plot_surface', a small trick must be applied. Sadly, the edges are not smooth even with this method. Another function 'plot_trisurf' can be the solution to this problem. In this tutorial, I cover this approach after demonstrating what's...
Rectangular Membrane Animation in 2D
Просмотров 2186 лет назад
Simulation of the eigenmodes of a rectangular membrane. I used a 2D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Animation of a Circular Drum with a Hole in 3D
Просмотров 1546 лет назад
Simulation of the eigenmodes of a circular membrane with a hole. I used a 3D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Animation of a Circular Drum with a Hole in 2D
Просмотров 896 лет назад
Simulation of the eigenmodes of a circular membrane with a hole. I used a 2D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Can you hear the shape of a drum? - Computing and Visualizing the Eigenmodes in Python
Просмотров 1,5 тыс.6 лет назад
I used the Anaconda Python 3 distribution with Jupyter Notebook. Theory: Can one hear the shape of a drum? by Mark Kac Sound effects obtained from www.zapsplat.com
Circular Drum Shape Animation in 3D
Просмотров 1,9 тыс.6 лет назад
Simulation of circular membrane eigenmodes. I used a 3D surface. Theory: Can one hear the shape of a drum? by Mark Kac Music by Setuniman at www.freesound.org/people/setuniman/ Sound effects obtained from www.zapsplat.com
Installing MatConvNet with CUDA 9.0 (GPU) support on Ubuntu 17.10
Просмотров 2,7 тыс.6 лет назад
It took me a day to figure out how to install MatConvNet with GPU support on my laptop. Because I could not find any tutorials, I decided to create one myself - hoping it will help others. Please consider subscribing to my channel and pressing the Like button, if you find this tutorial helpful. My setup: ASUS UX501V laptop with NVIDIA Geforce 960M graphics card. CUDA: developer.nvidia.com/cuda-...
Binomial option pricing model (put, call) in Python
Просмотров 14 тыс.6 лет назад
Binomial option pricing model (put, call) in Python
Simulated Annealing Visualization: Solving Travelling Salesman Problem
Просмотров 36 тыс.7 лет назад
Simulated Annealing Visualization: Solving Travelling Salesman Problem
Channel Trailer
Просмотров 547 лет назад
Channel Trailer
Latin Hypercube Sampling (2D, uniform) in Python
Просмотров 13 тыс.7 лет назад
Latin Hypercube Sampling (2D, uniform) in Python
Mandelbrot set in Python
Просмотров 45 тыс.7 лет назад
Mandelbrot set in Python
Numerical Differentiation (First) and How to Minimize Error with Python
Просмотров 2,5 тыс.7 лет назад
Numerical Differentiation (First) and How to Minimize Error with Python
Approximation of Pi Using Hit and Miss (Monte Carlo) Method with Python
Просмотров 10 тыс.7 лет назад
Approximation of Pi Using Hit and Miss (Monte Carlo) Method with Python
Elementary Cellular Automata 30-59
Просмотров 677 лет назад
Elementary Cellular Automata 30-59
Elementary Cellular Automata 150-179
Просмотров 657 лет назад
Elementary Cellular Automata 150-179
Elementary Cellular Automata 240-255
Просмотров 377 лет назад
Elementary Cellular Automata 240-255
Elementary Cellular Automata 120-149
Просмотров 937 лет назад
Elementary Cellular Automata 120-149
Elementary Cellular Automata 180-209
Просмотров 617 лет назад
Elementary Cellular Automata 180-209
Elementary Cellular Automata 90-119
Просмотров 577 лет назад
Elementary Cellular Automata 90-119
Elementary Cellular Automata 60-89
Просмотров 1577 лет назад
Elementary Cellular Automata 60-89
Elementary Cellular Automata 210-239
Просмотров 527 лет назад
Elementary Cellular Automata 210-239

Комментарии

  • @DaMonster
    @DaMonster 10 дней назад

    How did you solve it? Eigenvectors of a discretized Laplacian matrix?

  • @robbypradana-ei4yv
    @robbypradana-ei4yv 7 месяцев назад

    I'm very interesting about this reaserch. Could i have ur email please. May be we can disucuss about it

  • @bartekburmistrz8679
    @bartekburmistrz8679 8 месяцев назад

    Thank you, I have this due in 18 minutes

  • @nayanak9881
    @nayanak9881 9 месяцев назад

    Thank you so much❤

  • @AnComplexFraktal
    @AnComplexFraktal 10 месяцев назад

    bro i got a LOT OF ERRORS how do i fix it.

  • @anhvuoan5901
    @anhvuoan5901 Год назад

    nice loop max iteration but it take too long

  • @Doctor-Lean
    @Doctor-Lean Год назад

    Good interesting . Cloud you share python code?

  • @RobertReilly-k9d
    @RobertReilly-k9d Год назад

    How much memory does your computer have? I only get a round circle.

  • @nixboaski
    @nixboaski Год назад

    wow... I wrote a code in a different way and the figure was so rudimentary. I didn't use that convergence critera of |z| < 2. Instead, I iterated the expression for z_n 10 times (because more times than that would make NaN values begin to appear) and made a linear regression over those points. If the linear coefficient was negative, then it converges. Yeah, I know, it's a pretty bad test of convergence, but I was just playing. It generated an image that was poor, it didn't get even closer to the one you generated here with your code. Thanks for showing us how you did it.

  • @KaushalSoni2205
    @KaushalSoni2205 Год назад

    Make a vedio for bifurcation diagram

  • @Viewpoint314
    @Viewpoint314 Год назад

    I went to a talk about this famous problem in 1969 about!

  • @i_camioneta1697
    @i_camioneta1697 Год назад

    covered 3 hours of lecture in 3 minutes

  • @itsJden_
    @itsJden_ Год назад

    Bruh Mad respect for doin this in jupyter notebook

  • @hananokoku5215
    @hananokoku5215 2 года назад

    I managed to do my job thanks to this video. Thank you! <333

  • @user-jc5pg3jg8l
    @user-jc5pg3jg8l 2 года назад

    That isnt mandelbrot set by python but there have some solution of 'drawing mandelbrot set'. usually programmers introduce these set by mathmatical ways or using some pararell programming but this video just use **MODULE** so i dont advise these video. :(

  • @Dafiya445
    @Dafiya445 2 года назад

    Thank You Somuch

  • @semasselesma225
    @semasselesma225 2 года назад

    how we correct this problem E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

  • @mecrajib
    @mecrajib 2 года назад

    Thank you sir. it has been useful.

  • @rubanacexd9987
    @rubanacexd9987 2 года назад

    The function get_distance is wrong.. @Vinicius mention the correction down in the comment

  • @yassine_pastis53
    @yassine_pastis53 2 года назад

    what is the y in S,I,R=y

  • @aouneilham8904
    @aouneilham8904 2 года назад

    can you send me the code?

  • @raheemtariq8139
    @raheemtariq8139 2 года назад

    can you send me the code?

  • @eyvazteymurov9338
    @eyvazteymurov9338 2 года назад

    Thank You so much! I just have installed by this way

  • @josbexerra8115
    @josbexerra8115 2 года назад

    Gracias Mister...

  • @akshayhegde647
    @akshayhegde647 2 года назад

    Beautiful music too, thanks

  • @novygaming5713
    @novygaming5713 2 года назад

    Hippety poppity your code is now my property

  • @muhammadrayyan4389
    @muhammadrayyan4389 2 года назад

    hi thank you very much...but I have a question, how can you modify the range of the sample to be between 0-2 instead of just between 0-1?

  • @MrCubFan415
    @MrCubFan415 2 года назад

    Rule 64 and 72 look the same

  • @Vinicius-xn5gm
    @Vinicius-xn5gm 2 года назад

    You have a problem in the algoritm. The function get_distance is wrong. The right way to have the distance of two points is with: np.sqrt((a.x-b.x)**2 + (a.y-b.y)**2)

    • @rubanacexd9987
      @rubanacexd9987 2 года назад

      Yup works fine after I fixed this. Thx pal

    • @xondiego
      @xondiego Год назад

      yes, the manhattan distance is without the sqrt as: numpy.abs(a.x-b.x) + numpy.abs(a.y-b.y).....or eucleadian distance is as numpy.sqrt((a.x-b.x)**2 + (a.y-b.y)**2)

  • @dantelangone4829
    @dantelangone4829 3 года назад

    Tripping music when heard after waking up at 4 am to write the thesis... Thanks ;)

  • @geraldsnodd
    @geraldsnodd 3 года назад

    Thank you this worked I finally made my beloved mandelbrot set in python. 💪😃

  • @onahnianphysics8269
    @onahnianphysics8269 3 года назад

    May God bless you abundantly for this piece!

  • @jungmin4729
    @jungmin4729 3 года назад

    thank you I made it

  • @wuwei2680
    @wuwei2680 3 года назад

    Is this American or European

  • @johnsincak3877
    @johnsincak3877 3 года назад

    You're an AI aren't you??!!

  • @chickenkorma3163
    @chickenkorma3163 3 года назад

    65 second explanation and i got the basic idea of simulated annealing. Perfect video!

  • @hoangluong4353
    @hoangluong4353 3 года назад

    Fantastic tutorial ! Thank you very much <3

  • @muhammadrayyan4389
    @muhammadrayyan4389 3 года назад

    my thankss!!!

  • @syusaka644
    @syusaka644 3 года назад

    I am Japanese. Thank you.

  • @jayatidutta1941
    @jayatidutta1941 3 года назад

    While I am going to run a file it is showing "Package installation" notification..what is the next step in that case..I mean should I link the texlive/miktex packages with texstudio?

  • @sumantkumar4233
    @sumantkumar4233 3 года назад

    how can we use the mask in removing unwanted triangulation a region ?

  • @nsnilesh604
    @nsnilesh604 3 года назад

    Awesome explanation sir thank you

  • @satyajitswain3532
    @satyajitswain3532 3 года назад

    can u send me its Source code ..because its very important to me ...please send...

  • @lkapo7047
    @lkapo7047 3 года назад

    Thank you for the video. It was suggested to us in our Markov Chain lecture.

  • @edemfiatsonu9227
    @edemfiatsonu9227 3 года назад

    Thanks for the video, I have followed your tutorial but my last graph I have only three points being connected. What might be the cause?

    • @basvanrooij1020
      @basvanrooij1020 3 года назад

      Same issue over here, I am trying to figure out what I am doing wrong compared to the video.. Have you found the mistake already?

    • @basvanrooij1020
      @basvanrooij1020 3 года назад

      FYI, I think the SA contains a small error with writing back the "old" layout/route/name it if you do not accept the worse solution. If you fix that, all points will show up in the graph.

  • @biniking5579
    @biniking5579 3 года назад

    Thank you!

  • @computersense5869
    @computersense5869 3 года назад

    what is S0

  • @sametocsy
    @sametocsy 3 года назад

    hi, how can I do this using the message passing method?

  • @dishanaik6128
    @dishanaik6128 3 года назад

    Thank you so much...

  • @gargisen6790
    @gargisen6790 3 года назад

    It is nicely working..Thanks.