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 answers
Related Questions in EXCEL
- Power Query / M Code, extract a list of tables into one main table, some column headers same but some different and in different order (and in row 2)
- Is there a way to validate the cell format (from excel) to fetch the symbol from it (in Java)?
- Excel - Visual Basic, macro with autofill "1"
- Getting Run-time error '13': Type Mismatch using .Find
- Getting website metadata (Excel VBA/Python)
- Excel Code Editor doesn't work (blank window)
- How to find out how many of each 2, 3 and 4 required to fit in 100 using excel?
- How would I apply a rather complex summation formula like this in Excel?
- Removing a Button from Customized Excel Ribbon
- Excel - Update Item Description Based on Accessories Ordered with It
- select duplicates from data based on another column
- How to use VBA to bold just some text
- VBA Code to filter and get values from csv to excel worksheet
- Look up max alpha numeric value
- Azure Batch for Excel VBA
Related Questions in MATHEMATICAL-OPTIMIZATION
- Best way of finding KKT points for a Sympy polynomial
- CVXPY : Minimising with parameter set to 0 and minimising without parameter gives different answers
- Implementing Constraints in OPL Using CPLEX
- Assigning resources to consumers according lists of preferences
- Dynamic Pricing optimization with volume weighted price constraint
- About MATLAB intlinprog
- Trouble with Refinery Optimization Python Script
- How to handle nondeterministic objective function with scipy.optimization.differential_evolution?
- Non linear programming float decision variable in CPLEX
- If else then constraint to linearization
- How to write solution file for an LP problem with Coin-or Cbc Solver?
- Defining the value of one variable in a constraint in relation to another variable without making the problem nonlinear in Pyomo
- ortools solvers GLOP, PDLP instantly writes that the model is infeasible
- Is there a constraint to pieces of the stateFunction only go in ascending or descending order?
- issues with template <> during scip installation
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?
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?
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)
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.)