We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e2989 commit f90543aCopy full SHA for f90543a
app.py
@@ -154,6 +154,19 @@ def solve():
154
)
155
return response
156
157
+ elif pfsp_algorithm == "cds":
158
+ seq, jobs, opt_makespan = problem_inst.genetic_algorithm()
159
+ fig = jobs_to_gantt_fig(jobs, num_machines, num_jobs)
160
+ graph_json = ganttfig_to_json(fig)
161
+ resp = json.dumps(
162
+ {"graph": graph_json, "optim_makespan": opt_makespan, "opt_seq": seq})
163
+ response = app.response_class(
164
+ response=resp,
165
+ status=200,
166
+ mimetype="application/json",
167
+ )
168
+ return response
169
+
170
171
@app.route('/random', methods=["POST"])
172
def random():
0 commit comments