Does anybody here who knows about Lingo Script? I'm actually a newbie on Lingo Script. And my problem is I don't have any idea on how to make an output in combining 3 coordinates. Example output: (x1,y1), (x2,y2), (x3,y3)
1
There are 1 best solutions below
Related Questions in LINGO
- A simple question about modeling with lingo Error Code: 63
- How to define a dependent sets on Lingo?
- Lingo linear programming - Add restriction to table
- How to code if condition constraint in LINGO
- input parameter with three indices in LINGO software
- integer linear programming on 3-partition of a special set
- Tweaking Lingo parameters with carrot2 (with PHP)
- Lingo giving an infeasible solution because of an unrelated variable?
- Error : "Missing pluralization rule for" for Lingo in Vapor
- Coding for LINGO/LINDO (Integer Linear Programming)
- How to write the syntax in lingo for the following objective function
- Derived variable stuck at 0 (unable to solve for fixed variable)
- solving mixed integer program with LINGO
- loading rLingo package for R
- How to call Lingo with Visual Studio?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
let's make an output in Lingo.
In a fresh project, I double click frame 1 and the behavior script editor opens up.
Enter this code:
The output in the Message window will look like this:
So that's how you know the syntax works, and the little XY coordinates are compiling into structures the computer understands.
Now let's try to do some maths on them.
where the output is:
Okay, let us try to add a third coordinate, and change the code so it addresses the coordinates as variables.
where the output is
[54,90].Perhaps we want to do something that talks about the components of the coordinates, in this case, X and Y. We do this using the square bracket operator, and in this case, we pass in index, 1 (number in first slot is the X value), or 2 (number in second slot is Y value).