Skip to content

Cgl012cut.cpp is not threadsafe #63

@tosttost

Description

@tosttost

In Cgl012cut.cpp line 3289:

static double max_score_ever = ZERO; /* maximum score of a violated cut during
					the whole cutting plane procedure */

this global variable is used and updated during separation, so multiple instances of Cgl012cut running in parallel (or probably sequential within the same process) will influence each other.

Note that I have no idea if

  • what effects this might have on Cbc
  • it is algorithmically valid to turn that global variable into a field of Cgl012cut (which would be easy to do)

Is there anyone around that knows about the internals of Cgl012cut?

Metadata

Metadata

Assignees

No one assigned

    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