Code Monkey home page Code Monkey logo

truss-optimization's Introduction

Truss-Optimization

Analysis and Optimization of Truss Structures using Genetic Algorithms

This repository contains a Python program that optimizes truss designs for maximum strength while minimizing the total weight. The program uses genetic algorithms to find the best truss design given a set of constraints.

Table of Contents

  • Prerequisites
  • Installation
  • Usage
  • Inputs
  • Outputs
  • Contributing

Prerequisites

Before running this program, you will need to have the following software installed on your computer:

  • Python 3
  • NumPy
  • SciPy

Installation

To use this program, you will need to have Python 3 installed on your computer. You can download Python from the official website: https://www.python.org/downloads/

Once you have Python installed, you can clone this repository to your computer using Git:

git clone https://github.com/SaaadRaaa/Truss-Optimization.git

To install the necessary packages, you can use pip:

pip install numpy scipy

Usage

To run the program, navigate to the directory where the repository is located and run the following command:

python main.py

By default, the program will generate a truss structure with 10 nodes and optimize it for maximum strength while minimizing the total weight. You can customize the number of nodes and other parameters in the program by modifying the values at the loadcase file. You will also need to specify the load and support conditions.

The program will then use genetic algorithms to optimize the truss design for minimum weight, subject to the given constraints.

Inputs

The program takes the following inputs:

  • Node coordinates
  • Element connectivity
  • Load conditions (magnitude and direction)
  • Support/Boundary conditions
  • Element properties (density, cross-section area and elastic modulus)

Outputs

The program outputs the following:

  • Optimal truss design (member cross-section areas)
  • Total weight of the truss
  • Visualization of the truss design

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.

truss-optimization's People

Contributors

saaadraaa avatar sad-abd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.