Skip to content

Instantly share code, notes, and snippets.

View ericpar's full-sized avatar
🖋️
Focusing

Eric Parent ericpar

🖋️
Focusing
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <glpk.h>
/*
Maximize
obj: x1 + 2 x2 + 3 x3 + x4
Subject To
c1: - x1 + x2 + x3 + 10 x4 <= 20
c2: x1 - 3 x2 + x3 <= 30