Next: Example mip1_c.c Up: Gurobi Optimizer Quick Start Previous: Attributes
This section will work through a simple C example in order to illustrate the use of the Gurobi C interface. The example builds a simple Mixed Integer Programming model, optimizes it, and outputs the optimal objective value. This section assumes that you are already familiar with the C programming language. If not, a variety of books are available for learning the language (for example, The C Programming Language, by Kernighan and Ritchie).
Our example optimizes the following model:
|subject to||x||+||2 y||+||3 z||4|
|x, y, z binary|