I'm having trouble configuring my script file for lingo to solve a basic simplex model on my windows PC:

MODEL:

!Objectives defined and interpreted below:;

SETS:
    LEATHER = X1 X2;
    SLACK = S1 S2;
ENDSETS

DATA:
    YIELD = 40;
    HOUR = 60;
ENDDATA

    MAX = 4X1 + 3X2;

! constraints below:;

    @SUM(LEATHER(I): X(I)) + S1 = YIELD;
    2X1 + X2 + S2 = HOUR
    @FOR(LEATHER(I):
        X(I) >= 0;
    );
    [Non-Negative Constraint] @FOR(SLACK(I):
        S(I) >= 0;
    );

END

asked 16 Nov '16, 12:56

feasibility's gravatar image

feasibility
112
accept rate: 0%

edited 17 Nov '16, 08:25

fbahr's gravatar image

fbahr ♦
4.6k716

This should be CLOSED

(16 Nov '16, 17:15) feasibility

The question has been closed for the following reason "Other" by fbahr 17 Nov '16, 08:24

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×231
×20
×4
×4

Asked: 16 Nov '16, 12:56

Seen: 342 times

Last updated: 17 Nov '16, 08:25

OR-Exchange! Your site for questions, answers, and announcements about operations research.