Skip to content

Sheet 4 - Exercise 1 - Relaxation: Add check for edge data "x" in verify script #10

@gabriel-gehrke

Description

@gabriel-gehrke

The task requires implementing edge attributes called "x" for every edge in the graph in which the (fractional) assignments of the variables are stored. If the student failed to do so, the error message looks rather cryptic.

Traceback (most recent call last):
File ".../04_mip/exercises/01_tsp/_alglab_utils.py", line 192, in
exec(exc_file, glob)
File "", line 157, in
File "", line 40, in att48
File "", line 19, in _connected
TypeError: '>=' not supported between instances of 'NoneType' and 'float'

A simple check that assures that all edges in the solution graph have data("x") defined would be helpful.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions