Questions tagged [lindo]
13 questions
2
votes
0 answers
Coding for LINGO/LINDO (Integer Linear Programming)
I'm confused how to write the code on LINGO for this model (the model is on pic). I want the "Periode" (period on English) to be consecutive. I tried this code, it's feasible but it's not in consecutive periods. Can someone help me with this…

Rei
- 21
- 1
1
vote
0 answers
How do I implement a 1D integer bin-packing program with excel?
I can't seem to find any resources for this question ANYWHERE that doesn't make it convoluted. Below is an example of one of the questions I need to answer.
Write an integer program for the following instance of bin packing and solve with excel. I…

Cory Allen
- 149
- 1
- 10
1
vote
0 answers
Parallel Machine Scheduling by Lingo
I try to solve Parallel Machine Scheduling Problem by LINGO, But the error code 63 "Model is ill define" was showed. Could you please advise me how to fix this error on my code as below;
Thank you in advance!!
!Pararell MC scheduling…

Dollaya Buakum
- 11
- 1
1
vote
0 answers
Lindo syntax error for division
I have tried adding parenthesis to the code but lindo gives an error stating that its a variable. According to lindo documentation "(" should be accepted as a parenthesis but this does not occur. Removing the parenthesis causes the code to terminate…

chupacabra
- 31
- 7
1
vote
1 answer
Optimization with LINGO
The Dynamic Programming Problem
I have one optimization problem I am trying to solve with LINGO, I am a beginner with LINGO and I need some help. The question can be accessed by cliking on the 'The Dynamic Programming Problem' link above. Sorry I…

moinabyssinia
- 163
- 1
- 2
- 9
1
vote
0 answers
Sets in LINGO Programming
I need help on Lingo programming.I have a mixed integer programming to solve it using sets in Lingo.One of the constraints is:
S(i,k,w) >= m(i,j) * X(i,t), for i=1,...,I; j=1,...,J; t=1,..,T; k=t+K(j,w)-1,..,t+K(j,w)+S(j)-2; w=1,..,W.
Here m(i,j),…

user3439776
- 11
- 2
0
votes
0 answers
How to code if condition constraint in LINGO
sorry i have one problem to write if condition in LINGO, can anyone help me to code this simple if condition?

ahmad
- 73
- 4
0
votes
0 answers
input parameter with three indices in LINGO software
i want to input parameter with three indices in LINGO software but i don't know how to input this parameter in sets. for example in following sets i want to input D parameter with p,m and t indices. can anyone help me how to define parameter…

ahmad
- 73
- 4
0
votes
1 answer
I need to determine the Minimum value between the 8 variables using LINGO. But i am getting Syntax Error. Can anyone help me with the following model
Good Day. I am trying to develop a Cut Order Planning model using LINGO
!There are 8 integer variables;
x1+x2+x3+x4+x5+x6+x7+x8 <=16;
!Identify the values of the following variables:
y1 = 160/x1;
y2 = 448/x2;
y3 = 832/x3;
y4 =…

Snowtex Autonomy
- 3
- 1
0
votes
1 answer
Derived variable stuck at 0 (unable to solve for fixed variable)
I'm supervising exercise sessions about LINGO and LP and today an exercise came up about investing. This is the intended solution:
MODEL:
SETS:
year /t0 t1 t2 t3/: capital;
investment /A B C D E/: allocated;
table(investment, year):…

Wout12345
- 91
- 5
0
votes
1 answer
Group assignment problem with optimisation methods
There’s a company organising a seminar, where 60 trainees will attend. The company plans to divide the participants into 10 groups, each of 6 trainees. Each of the trainees was asked beforehand to choose 5 other trainees they would like to work…

Jørgen Andreasen
- 1
- 2
0
votes
1 answer
Optimization with only non-linear objective and all linear constraints
I am using Lindo API to solve a non-linear optimization scenario with non-linearity in only the objective. I am loading the constraint coefficients using LSloadLPData and calculating the value of objective using the CallBack function set via…

mnmp
- 380
- 2
- 15
0
votes
1 answer
LINDO Non linear programming - Modlus and square operation
I tried this
MIN 0.2 [ 2 + @ABS( 2x^2+2x-3) + @ABS( 2x^3+5x-2) + @ABS( 2x^4+2x^3+5x^2+7x-2.5) ]
For the equation
min 0.2[2+|2x^2+2x-3| + |2x^3+5x-2| + |2x^4+2x^3+5x^2+7x-2.5|]
But getting error

vigneshwaran sr
- 49
- 9