Skip to content

docplex.cp.modeler.constant(x) function is not a valid expression #97

@PhR-IBM

Description

@PhR-IBM

When using the documented modeler.constant(x) function where x is a constant value, docplex/cp creates a .cpo file for the engine that contains constant(x) as expression. This is not a valid expression for a .cpo file. An error is thus raised when solving the model.

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