Skip to content

Instantly share code, notes, and snippets.

@Fcmam5
Created November 26, 2016 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fcmam5/b23c330c09cb2d632b73a1e66fbaec7d to your computer and use it in GitHub Desktop.
Save Fcmam5/b23c330c09cb2d632b73a1e66fbaec7d to your computer and use it in GitHub Desktop.
AMPL and CPLEX example model for (https://www.youtube.com/watch?v=Mr5Kz2JLC8o)
var x1 >= 0;
var x2 >= 0;
maximize fct: 6*x1 + 4*x2;
subject to test1: 3*x1 + 9*x2 <=81;
subject to test2: 4 * x1 + 5 * x2 <= 55;
subject to test3: 2 * x1 + x2 <= 20;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment