Skip to main content

Handling Product of Continuous Decision Variables in MATLAB Optimization Toolbox with Gurobi

Answered

Comments

5 comments

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Fabiana,

    my objective function, which includes the product of two continuous decision variables

    Our example qp.m may help, as the objective has several product terms of continuous variables:
    https://docs.gurobi.com/projects/examples/en/current/examples/matlab/qp.html#subsubsectionqp-m

    If you are facing issues with products of continuous variables then this sounds like it could be a restriction by the Optimization Toolbox.

    - Riley

    0
  • FABIANA NANI
    • First Comment
    • First Question

    Thank you Riley. 

    If you are facing issues with products of continuous variables then this sounds like it could be a restriction by the Optimization Toolbox.

    What is the alternative? 

     

    0
  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Fabiana,

    I'd first check that the Optimization Toolbox is up to date.  If it is then there are three options:

    i) use Gurobi's matlab API, or
    ii) use a different 3rd party Matlab tools such as YALMIP, or
    iii) use a different language

    - Riley

     

     

    0
  • FABIANA NANI
    • First Comment
    • First Question

    Hi Riley,

    I think that the Optimization Toolbox is updated. 

    use a different language

    Are you saying me that If I use a different language, I could manage the product? 

    0
  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Fabiana,

    Yes, if you take a look at the qp example you can see all the different API languages we support. Python is the most popular choice for Gurobi users by a very long amount.  Matlab is not used much at all.

    These examples will work straight out of the box.  You will note there is an example for matlab - this is our matlab API and does not use the Optimization Toolbox.

    - Riley

    0

Please sign in to leave a comment.