Skip to content

A variety of modeling optimization problems using the IBM ILOG CPLEX Optimization Studio, with the C++ library

License

Notifications You must be signed in to change notification settings

oscaralejandro1907/cplex-examples

Repository files navigation

cplex-examples

Description of examples

Linear and Mixed Integer Programming Models

A simple example, made without classes, and inside the main function. The model has 3 variables of 1 subindex (x1, x2, x3). After model is solved solution status, solution value (obj. function), values of variables, and slacks of constraints are printed.

A simple linear model example. A CplexModel class is created from within all steps are executed, then an object to call the constructor of the class is created in the main function to run the model. The model has 2 variables of 1 subindex (x1, x2). After model is solved solution status, solution value (obj. function), values of variables, and slacks of constraints are printed.

A simple linear model example of a production of glasses. A CplexModel class is created.

An example minimum flow model, A CplexModel class is created. After solve the problem to other constraints are added to call cplex to re-optimize the previous solved model.

An example of a feed-mix problem. This example is in the book: Bazaraa. Linear Programming and Network Flows. 4th Ed. Chapter 1 Exercise 1.3 page 29-30.

An simple example of a linear model populated by columns with one type of variable (x1, x2, x3). A Cplex class is created within all steps are executed.

An example of an integer model with two types of variables of 1 subindex (xi and yi). This model is populated by columns.

An example of a cutting stock problem. Solved by a column generation procedure

A complete tsp model

Multi-Objective Problems

Two examples of simple multiobjective problems

A simple bi-objective model solved by the eps-Constraint method.

Constraint Programming Models

An introduction example to Constraint Programming (CP). An instance about a problem of graph coloring is solved with this solution method.

A simple example of a CP Model to organize tasks for building a house. Only precedence constraint IloEndBeforeStart is used.

A CP model for a classic Flow-shop Scheduling Problem. Instance data format is provided in the examples of the cplex local installation folder.

A CP model for a classic Job Shop Scheduling problem. Instance data an steps based on the example provided in the cplex local installation folder.

A CP model for a classic Flexible Job Shop Scheduling problem. Instance data an steps based on the example provided in the cplex local installation folder.

A Capacitated Vehicle Routing problem solved using Constraint Programming

About

A variety of modeling optimization problems using the IBM ILOG CPLEX Optimization Studio, with the C++ library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published