Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

LP writer creating invalid names for COIN CBC #67

Closed
d3netxer opened this issue May 13, 2019 · 2 comments
Closed

LP writer creating invalid names for COIN CBC #67

d3netxer opened this issue May 13, 2019 · 2 comments
Labels
bug File format: LP Relates to the LP file format

Comments

@d3netxer
Copy link

In my Julia file I am creating variables. The output .lp file has brackets for the variables and is creating many errors like the following when I am running cbc from the command line:

### CoinLpIO::is_invalid_name(): Name x[1] contains illegal character '['

Is there any way to fix this? Maybe we can replace the brackets with underscores?

@odow odow added bug File format: LP Relates to the LP file format labels May 13, 2019
@odow
Copy link
Owner

odow commented May 13, 2019

LPWriter.jl has some logic about handling valid names. See https://github.com/odow/LPWriter.jl/blob/master/src/LPWriter.jl

We should probably do something similar. I haven't finished #32

@odow
Copy link
Owner

odow commented Jun 12, 2019

Closed by #71

@odow odow closed this as completed Jun 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug File format: LP Relates to the LP file format
Projects
None yet
Development

No branches or pull requests

2 participants