tsp Namespace Reference
Variables | |
str | GAMS_MODEL |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | ws = GamsWorkspace(system_directory=sys_dir) |
int | cuts_per_round = 10 |
int | cur_cut = 0 |
int | cmax = 0 |
GamsWorkspace | cut_data = ws.add_database() |
GamsWorkspace | cc = cut_data.add_set("cc", 1) |
GamsWorkspace | acut = cut_data.add_parameter("acut", 3) |
GamsWorkspace | rhscut = cut_data.add_parameter("rhscut", 1) |
list | n = [] |
GamsWorkspace | job = ws.add_job_from_string(GAMS_MODEL) |
GamsWorkspace | cp = ws.add_checkpoint() |
GamsWorkspace | opt = ws.add_options() |
gams_options | |
checkpoint | |
GamsWorkspace | mi = cp.add_modelinstance() |
GamsWorkspace | mi_acut = mi.sync_db.add_parameter("acut", 3) |
GamsWorkspace | mi_rhscut = mi.sync_db.add_parameter("rhscut", 1) |
dict | graph = {} |
list | not_visited = list(n) |
list | i = not_visited[0] |
list | sub_tour = [i] |
value | |
end | |
Variable Documentation
◆ acut
◆ cc
◆ checkpoint
◆ cmax
◆ cp
◆ cur_cut
◆ cut_data
◆ cuts_per_round
◆ end
◆ GAMS_MODEL
◆ gams_options
◆ graph
◆ i
dict tsp.i = not_visited[0] |
◆ job
GamsWorkspace tsp.job = ws.add_job_from_string(GAMS_MODEL) |
◆ mi
◆ mi_acut
GamsWorkspace tsp.mi_acut = mi.sync_db.add_parameter("acut", 3) |
◆ mi_rhscut
GamsWorkspace tsp.mi_rhscut = mi.sync_db.add_parameter("rhscut", 1) |
◆ n
◆ not_visited
◆ opt
◆ rhscut
GamsWorkspace tsp.rhscut = cut_data.add_parameter("rhscut", 1) |