Skip to main content

Minimise an Excel Formula

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Sunu,

    What you should try to do first, is to write down the model you are minimizing in Excel on a sheet of paper, i.e., write it in the form

    \[\begin{align}
    \min_x\,\, &c^T x\\
    \text{s.t.}\,\, & Ax \leq b
    \end{align}\]

    If the problem is nonlinear then just use \(f(x)\) instead of \(Ax\). Once you were able to write your model in the above form, you should have a look at our Python webinar and our Python examples to write your model in a Gurobi readable way.

    Please note that Frontline's GRG algorithm accepts any nonlinear terms while Gurobi only accepts bilinear terms \(x^2\) and \(x\cdot y\). Other nonlinear terms can be modeled via a piecewise approximation.

    Best regards,
    Jaromił

    0

Post is closed for comments.