Skip to content

Commit b48d51d

Browse files
committed
Adds passing parameters to simulated_annealing method
1 parent 5fd05fd commit b48d51d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ def solve():
206206
return response
207207

208208
elif pfsp_algorithm == "simulated-annealing":
209-
seq, jobs, opt_makespan, t_t = problem_inst.simulated_annealing()
209+
ti = float(prob["ti"])
210+
tf = float(prob["tf"])
211+
alpha = float(prob["alpha"])
212+
seq, jobs, opt_makespan, t_t = problem_inst.simulated_annealing(ti, tf, alpha)
210213
fig = jobs_to_gantt_fig(jobs, num_machines, num_jobs)
211214
graph_json = ganttfig_to_json(fig)
212215
if float(t_t) * 1000 > 1000.0:

0 commit comments

Comments
 (0)