In lingo I have modeled a maximizing function and have found optimal values for say x1,x2,x3.The data required to this model is obtained through an EXCEL sheet by =@OLE('C:\sheet1'). This maximization part works fine. For the second part now I have to use these optimal X1,X2,X3 which were found from this model and use some data in C:\sheet1 and multiply Xi's with sheet1 data and insert the resulting values in a column in sheet1.
How can I do this?
Do I have to do the second part in a separate LINGO file? If so how can I obtain the optimized values in first model ?
Or can I write two Models in one LINGO file? In this way does this help me to have the optimized values from part1 to be used for part2?
Using the optimized values from one Lingo model in another Lingo model
531 Views Asked by clarkson At
1
There are 1 best solutions below
Related Questions in EXCEL
- Concatenate excel cell string within cell reference string
- Use hidden information for filtering data
- Using Vlookup in Excel sheet to match substring
- Import from api into multiple excel cells
- Loop through list of files and open them
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Loop with equation for upper limit
- excel vba null value in array
- Why is my xml file having these after convert from excel?
- TextToColumns function uses wrong delimiter
- Difference between two dates in excel 2013
- Concatenate string and number as number
- Why in a pivot the "include new items in manual filter" option is grey out when source is a powerpivot?
- Count Unique Values Repeated Dates
- How do I extract info from crunchbase
Related Questions in MATHEMATICAL-OPTIMIZATION
- Issue with constrOptim
- out of memory in matlab run time
- How to convert quadratic to linear program?
- How to create upper bound on many variables w/ lpsolve in R?
- Finding a vector that is approximately equally distant from all vectors in a set
- Constrained quadratic optimization with the quadProg library
- R: Isotonic regression Minimisation
- How can I minimize this function in R?
- R: Quadratic programming/ Isotonic regression
- GRG Non linear constraint solver for iOS suggestions
- Two way constraint distribution optimization in R
- How do I speed up profiled NumPy code - vectorizing, Numba?
- How to do a math optimization (TSP) in R, perhaps with optim()
- Where is the 0=1 bug coming from in this Mathematica code?
- Trading run-time for higher fit accuracy?
Related Questions in LINGO
- linear programming in Lingo
- creating a cluster from XML file
- Directtostage error when playing published application in another computer
- How can you tell if a language is a "dynamic language"?
- How to return a binary value by comparing two variables?
- Coding for LINGO/LINDO (Integer Linear Programming)
- integer linear programming on 3-partition of a special set
- Understanding Lingo derived sets
- Using the optimized values from one Lingo model in another Lingo model
- Derived variable stuck at 0 (unable to solve for fixed variable)
- solving mixed integer program with LINGO
- Director 11 and Flash with AS 2 communication
- Need help with cuepoints (Adobe Director project)!
- Lingo Filter for Doxygen?
- How to detect if Windows is 64x or 86x via Lingo (Adobe Director)
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 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?
I am not a Lingo expert, but here are a few hints. You can use the
SUBMODELdirective to define two submodels and then execute them in aCALCsection. Between executing them, you can 'sandwich' your data-processing code:As for the data export to Excel, see manual (Lingo 14) page 451 for an example.
SUBMODELis documented on page 597. These lecture notes also show many helful examples regarding the data processing (accessing variable values, modifying parameters, etc.)