Skip to content

Problem with column names containing space characters #2887

@mocenigo

Description

@mocenigo

I have some code that uses

SB = model.addBinaries(rounds, slices, columns, rows, name_prefix = 'SB')

where rounds, slices, columns, rows are lists, and this generates variables with names such as SB(0, 0, 0, 0).

I then proceed to write the model to a file

model.writeModel(tmp_model_file_path)

but at this point I get the error

ERROR:   Column 0 name "SB(0, 0, 0, 0)" contains a space character

which, I guess, should not happen, since it has been generated by HiGHS itself...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions