Skip to Main Content
IBM Data and AI Ideas Portal for Customers

This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea

Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal ( - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal ( - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM. - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Data & AI Roadmaps ( - Use this site to view roadmaps for Data & AI products.

IBM Employees should enter Ideas at

Status Future consideration
Created by Guest
Created on Sep 1, 2020

CPLEX: Make adding mulitple objectives consistent with adding one objective

In the Java API for CPLEX (presumably similar in other APIs), it is possible to create an objective and add it to a model in one function call, using overloads of IloCplexModeler.addMinimize() and .addMaximize() that take an IloNumExpr argument. Doing the same with multiple objectives requires chaining function calls (e.g. staticLex() -> minimize() -> addMinimize()). This could (should?) be simplified.

Needed by Date Jan 1, 2021
  • Guest
    Oct 1, 2020

    There is a very similar issue with the Python API (docplex).

    I have a model with some "hard" constraints, and 0 or more "soft" constraints. The problem is that I don't have a good interface in docplex for setting those constraints.

    In the case of 2 or more constraints, I use maximize_static_lex (the first constraint is more important then the second, which is more important than the third, and so on...). But if I try to use it with just 1 constraint, I get this error:

    Error: Multi objective must have at least 2 criteria.

    My request is to extend it so that if I call maximize_static_lex() with a list of length 1 it will behave like maximize(). Additionally, if the list is empty it will not do anything. If this is too difficult, then at least it should give a better error message, right when calling maximize_static_lex() and not on solve().

    Simple example:

    mdl = CpoModel()

    x = mdl.integer_var(min=0, max=9, name="x")

    y = mdl.integer_var(min=0, max=9, name="y")

    mdl.add(x + y < 15)

    mdl.add(x <= y)

    mdl.add(mdl.maximize_static_lex([x != y]))

    msol = mdl.solve(TimeLimit=10)​