View the model
Download the model
C programming example of interfacing with the LINDO API demonstrating adding new variables and constraints.
Original problem:
MAX = 20 * A + 30 * CModified problem after adding variables:
S.T.
A + 2 * C <= 120
A <= 60
C <= 50
MAX = 20 * A + 30 * C - 2 *DSolving such a problem with the LINDO API involves the following steps:
S.T.
A + 2 * C<= 120
A <= 60
C <= 50
[C + D >= 50] add later
1. Create a LINDO environment.
2. Create a model in the environment.
3. Specify the model.
4. Add a new variable
5. Perform the optimization.
6. Retrieve the solution.
7. Delete the LINDO environement.