Skip to content

Support constant values in objective #236

@0wenwu

Description

@0wenwu
  1. if the problem need to convert multi-objectives to singe-objective, it's necessary to make normalization involving some constant variables.
    It's not conveniet to construct objective containing constant, such as x+1
    Here is a trick to add constant
    constant_1=m.add_variables(lower=1, upper=1,name="constant_1")
  2. class Variable only have sum function, other operations are also needed, such as std

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions