Coder Social home page Coder Social logo

engineopt.jl's Introduction

engineOpt.jl

engineOpt.jl is a Julia-based engine conceptual design and optimization code. The code was developed based heavily on Drela's .f77 code TAESOPT engine code. We use a converter fort2julia to expedite the transition from .f77 code to .jl code; however, still quite some manual teak needs to be done after the raw conversion from fort2julia. The additional feastures of our code is:

  • Derivatives computed by the forward algorithmic differentiation (FAD) using the Julia ForwardDiff.jl package. (The code is also differentiated using reverse algorithmic differentiation (RAD) using Zygote.jl.)
  • The derivatives is used by gradient-based optimization solver which in our case we use IPOPT wrapped by the Julia-based optimization package JuMP.

Note on the choice of using FAD instead of RAD

For an optimization problem with more design variables than functions of interest (objective function, constraints, etc.), it is preferable to use RAD than FAD (more details see MDObook). The rationale behind the choice of the FAD is that: the current solver contains multiple Newton and fixed point iteration solvers making a direct implementation of RAD expensive in both computational time and memory (the intermediate steps need to be stored). In addition, Zygote.jl takes very long time to generate the RAD code. And with a dozen of design variables, we can use FAD + MPI (embarrassingly parallel in this case) to make the derivative computation very fast.

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.