Skip to content

ValueError: Nonlinear objective functions are not supported! #168

Closed
@FCYtheFreeman

Description

@FCYtheFreeman

My integer programming has multiple solutions,and I want to find the best solution that has the minimum number of 0.
Since my variables is non-negative integer, and the sum of variables is confirmed,my first method is set model.setObjective(x^2 + y^2 + z^2 , "maximize"), but it leads to an error:
ValueError: Nonlinear objective functions are not supported!

How can I solve this problem?Or is there other ways I can achieve my goal?

Thank you !

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