Coder Social home page Coder Social logo

irfan-gh / designresolver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from norheim/minimdo

0.0 0.0 0.0 6.96 MB

Toolkit for formulating conceptual design equations

License: MIT License

JavaScript 0.01% Python 1.88% TeX 0.02% HTML 0.02% Jupyter Notebook 98.07%

designresolver's Introduction

minimdo

Toolkit for formulating conceptual design equations, changing between declarative and input/output formulations and solve the resulting system of equations.

Minimal example

This is minimal code for running the Sellar problem (https://openmdao.org/newdocs/versions/latest/basic_user_guide/multidisciplinary_optimization/sellar_opt.html#)

z1,z2,x,y2 = Var('z1'), Var('z2'), Var('x'), Var('y2')

model = Model(solver=OPT)
m = model.root
a = adda(m, 'a', z2+x-0.2*y2)
y1 = adda(m, 'y1', z1**2+a)
adda(m, y2, y1**0.5+z1+z2)
addobj(m, x**2+z2+y1+exp(-y2)) 
addineq(m, 3.16-y1) 
addineq(m, y2-24) 
setsolvefor(m, [x,z1,z2], {x:[0,10], z1:[0,10], z2:[0,10]})
prob, mdao_in, groups = model.generate_mdao()

prob.run_driver() # optimal value about 3.183

organization

  • ds: data structures |--- ds_symbolic |--- ds_units |--- ds_funcstruct |--- ds_tree |--- ds_notation
  • cp: compute |--- cp_mdao |--- cp_operators
  • al: algorithms |--- al_matching - Matching bipartite graph |--- al_tearing - Chosing tearing variables to optimize structure |--- al_inputopt - Chosing inputs to optimize structure |--- al_ma - Monotonicity Analysis
  • vz: visualizations |--- vz_graphs |--- vz_dsm
  • app: applications |--- app_allison |--- app_pump - Example from Allisons thesis |--- app_coffee |--- app_balloon |--- app_minisat - 5 eqs system spacecraft |--- app_miniac - 7 eqs aircraft |--- app_sat |--- app_pearl

designresolver's People

Contributors

norheim avatar

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.