Skip to content

Commit

Permalink
fix: changed fallback type if no bounds are specified in lp_file to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
LovisAnderson committed Oct 28, 2020
1 parent a3947db commit bde898e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flipy/lp_reader.py
Expand Up @@ -334,7 +334,7 @@ def read(cls, obj: Union[str, IO, TextIO, io.StringIO]) -> LpProblem:

obj_name, obj_expr, obj_coeff = cls._parse_named_expression(sections['objective'])
constraints = cls._parse_constraints(sections['constraints']) if 'constraints' in sections else []
bounds = cls._parse_bounds(sections['bounds']) if 'bounds' in sections else []
bounds = cls._parse_bounds(sections['bounds']) if 'bounds' in sections else {}
generals = cls._parse_generals(sections['generals']) if 'generals' in sections else []
binaries = cls._parse_binaries(sections['binaries']) if 'binaries' in sections else []

Expand Down

0 comments on commit bde898e

Please sign in to comment.