Giter Club home page Giter Club logo

fjsp_fp_ga's People

Contributors

aihong-sun avatar

Stargazers

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

Watchers

 avatar

fjsp_fp_ga's Issues

一些小bug和疑问

  1. 在GA_for_FJSP.py文件中,line109-line111有个小bug,导致循环遍历不到最后一位。
    image
    line109应该改成:len_pt=len(pt) 或者 line111改成while k<=len_pt:
    同理,GA_for_Fuzzy.py相应位置也需要进行修改。

  2. 在GA_for_FJSP.py文件中,line185是无用的,因为后面decode函数会更新self.Best_JS
    image

3.疑问:在文件fuzzy_SF_Item.py中line21中,这里的排序不应该用模糊数的比较操作吗?
image

我是小白,为什么用Gantt_FJSP()函数画FJSP的结果图报错?

Traceback (most recent call last):
File "D:/PythonProject/FJSP_FP_GA-main/Algorithm/FJSP/GA_for_FJSP.py", line 217, in
Gantt_FJSP(Best_JS)
File "D:\PythonProject\FJSP_FP_GA-main\Gantt.py", line 42, in Gantt_FJSP
plt.barh(i , width=ET[j]-ST[j],
File "C:\Software\Anaconda3\envs\Pytorch\lib\site-packages\matplotlib\pyplot.py", line 2457, in barh
return gca().barh(
File "C:\Software\Anaconda3\envs\Pytorch\lib\site-packages\matplotlib\axes_axes.py", line 2649, in barh
patches = self.bar(x=left, height=height, width=width, bottom=y,
File "C:\Software\Anaconda3\envs\Pytorch\lib\site-packages\matplotlib_init_.py", line 1442, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\Software\Anaconda3\envs\Pytorch\lib\site-packages\matplotlib\axes_axes.py", line 2441, in bar
color = itertools.chain(itertools.cycle(mcolors.to_rgba_array(color)),
File "C:\Software\Anaconda3\envs\Pytorch\lib\site-packages\matplotlib\colors.py", line 473, in to_rgba_array
if len(c) == 0:
TypeError: object of type 'int' has no len()

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.