Coder Social home page Coder Social logo

top_dct's Introduction

Top_DCT

The present code is reproduction of the paper: A generalized DCT compression based density method for topology optimization of 2D and 3D continua

  1. The present code uses the MMA Matlab routines (which is widely used in the structural optimization community) as the optimizer. The present code calls the subroutine mmasub.m (“Version September 2007”) from the MMA Matlab routines, which in turn calls another MMA subroutine subsolv.m (“Version Dec 2006”). As the authors of the MMA matlab routines require, the MMA Matlab routines can be obtained by contacting Prof. Svanberg ([email protected]).

  2. Once the MMA matlab routines are obtained, some modifications of the optimization parameters need to be done as follows to run the design problem in the present paper: (i) set the parameter asyinit = 0.1, (ii) change the move limits of the design variables by replacing the original lines:

     if iter < 2.5 
       low = xval - asyinit*(xmax-xmin); 
       upp = xval + asyinit*(xmax-xmin); 
     else 
       zzz = (xval-xold1).*(xold1-xold2); 
       factor = eeen; 
       factor(find(zzz > 0)) = asyincr; 
       factor(find(zzz < 0)) = asydecr; 
       low = xval - factor.*(xold1 - low); 
       upp = xval + factor.*(upp - xold1); 
       lowmin = xval - 10*(xmax-xmin); 
       lowmax = xval - 0.01*(xmax-xmin); 
       uppmin = xval + 0.01*(xmax-xmin); 
       uppmax = xval + 10*(xmax-xmin); 
       low = max(low,lowmin); 
       low = min(low,lowmax); 
       upp = min(upp,uppmax); 
       upp = max(upp,uppmin); 
     end
    

    with

     if iter < 2.5 
       low = xval - asyinit*1; 
       upp = xval + asyinit*1; 
     else 
       zzz = (xval-xold1).*(xold1-xold2); 
       factor = eeen; 
       factor(find(zzz > 0)) = asyincr; 
       factor(find(zzz < 0)) = asydecr; 
       low = xval - min(2,factor.*(xold1 - low)); 
       upp = xval + min(2,factor.*(upp - xold1)); 
     end
    

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.