Syntax problem when compiling modeling in Lingo

Asked

Viewed 134 times

0

I’m trying to solve the modeling of a linear programming exercise in Lingo and every time I have the software compile the code I get the error code:

11. INVALID INPUT. SYNTAX ERROR HAS OCCURRED.

However, everything you typed seems to be correct and I can’t find the error. I wonder if the problem is in my modeling or if I need to change some configuration so that everything works properly.

The modeling I’m referring to is the following:

MIN = x1 + x2 + x3

117/100*10^-5*x1 + 10^-5*x2 + 8*10^-6*x3 <= 1;
4*10^(6)*117/100*10^(-5)*x1 + 4*10^(6)*10^(-5)*x2 + 5*10^(6)*8*10^(-6)*x3 >= 25000000;
2*10^(6)*117/100*10^(-5)*x1 + 5*10^(6)*10^(-5)*x2 + 5*10^(6)*8*10^(-6)*x3 >= 20000000;

Some variations have been tried, such as:

MIN x1 + x2 + x3

or,

1.17 ao invés de usar 117/100

however, none of them solved

1 answer

0

Hello,

This question is tagged as MATLAB, but usually Matlab is not compiled (at least from the user’s point of view). If this is from Matlab, let’s go to comments:

MIN is another variable or function?

Are you wanting to get the values of the 3 equations and compare the result or is it a set of equations.

x1,x2 and x3 are symbolic variables or numerical variables?

I await comments.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.