Giter Site home page Giter Site logo

shigeta-technoface / public-jsp-cam Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 123 KB

An unofficial implementation of Genetic Algorithms with Cluster Averaging Method for Solving Job-Shop Scheduling Problems by Python DEAP.

License: Apache License 2.0

Python 96.85% Dockerfile 1.77% Makefile 1.38%
python deap genetic-algorithm job-shop-scheduling-problem

public-jsp-cam's Introduction

public-jsp-cam

An unofficial implementation of Genetic Algorithms with Cluster Averaging Method for Solving Job-Shop Scheduling Problems by Python DEAP.

Overview

This is an unofficial implementation of the paper(in Japanese) and the book(in Japanese) written by Hiromi Hirano.

Requirement

  • deap
  • line_profiler (if need)
  • python3

Usage

Quick Start(docker)

> git clone [email protected]:shigeta-technoface/public-jsp-cam.git
> cd public-jsp-cam
> make build
> make run
> make login
> (login to container )
> python main.py
> exit

Quick Start

> git clone [email protected]:shigeta-technoface/public-jsp-cam.git
> cd public-jsp-cam
> pip install -r requirements.txt
> python main.py

The resulting three log files are in the logs directory.

Start Options

name description default value example
seed The number of random seed. 0 --seed 0
population The number of individuals in one population. 100 --population 100
loop Loop count. 1 --loop 1
processes The number of worker processes. os.cpu_count() --processes 12
logdir The directory name for log files. logs --logdir ./logs
no_mp Use single processing. Use multi processing. --no_mp
no_cam Use ordinal replacement. Use CAM replacement. --no_cam
is_test Small problem (MT6x6) and 100 generation for development. MT10x10 and 3000 generation. --is_test
do_perf Log the application performance. line_profiler is required. - --do_perf

Output

This program outputs three log files.

name description file name
root_log main log %Y%m%d%H%M%S%f_log.log
report_log A TSV file that records the best individual for each loop. %Y%m%d%H%M%S%f_report.dat
detail_log A TSV file that records the best individual for each generation. %Y%m%d%H%M%S%f_detail.dat

The following histogram was created using two report_log files. The CAM report_log is from python main.py --loop 300 and the NoCAM report_log from python main.py --loop 300 --no_cam.

The following line charts shows the percentiles of the best makespan for each generation. These were created by using detail_log file. The CAM detail_log is from python main.py --loop 300 and the NoCAM detail_log from python main.py --loop 300 --no_cam.

Author

[email protected]

public-jsp-cam's People

Contributors

shigeta-technoface avatar

Stargazers

 avatar

Watchers

 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.