Skip to main content
Gurobi Help Center Help Center home page
  • Status
  • Community
  • Submit a request
  • Sign in
  • Sign in
  • Community
  • Submit a request
  1. Gurobi Help Center
  2. Knowledge Base
  3. Modeling

Modeling

Reading, building, and writing models with Gurobi

General

  • General modeling tips to improve a formulation
  • Why does Gurobi report that my convex model is non-convex?
  • What types of models can Gurobi solve?
  • Where can I learn more about building optimization models?
  • What are Attributes?

Model Files

  • What are the differences between LP and MPS file formats?
  • How do I export a model from Gurobi?
  • How do I use a model file from lp_solve with Gurobi?
  • Why is Gurobi unable to read my LP model file?
  • Why does my MPS file produce different objectives with different solvers?
See all 6 articles

Modeling Functions and Expressions

  • Is it possible to feed black-box functions to Gurobi?
  • How do I access the left-hand side of a constraint?
  • How do I model conditional statements in Gurobi?
  • Why doesn't Gurobi support strict inequality constraints like x < a?
  • How do I divide by a variable in Gurobi?
See all 9 articles

Python Matrix API

  • What should I do upon "RuntimeWarning: Chained matrix multiplications of MVars..."
  • How do I pointwise multiply an array and an MVar with the matrix-friendly Python API?
  • How do I multiply an array and a 2-D MVar object using the matrix-friendly Python API?
  • How do I multiply two MLinExpr objects together with the matrix-friendly Python API?
  • How do I pointwise multiply two MVars with the matrix-friendly Python API?
See all 6 articles
© GUROBI OPTIMIZATION, LLC. ALL RIGHTS RESERVED.