Reputation: 1
I have to solve two problems, the first one is linear but the second one is not. I usually solve the linear problems using cplex optimizer with visual studio.
However the second problem can not be solved by cplex and I had been told that lingo can solved this kind of non-linear problems, so what I can do is to solve the first problem in visual studio and then make another code to solve the second problem with lingo. But it is very tedious because I have to do that multiple times.
So what I want to ask is: there is a way to have only one code and call lingo from visual studio to solve the second problem (as I can call cplex)?
Upvotes: 0
Views: 267
Reputation: 53
You can call Lingo's optimizers from within Visual Studio. There are programming samples under LINGO\64_17\Programming Samples folder. This is assuming that you have Lingo 17/Win64 installed. For example, if you are coding in VC++, the sample I would try first would be VC++\Simple2. Follow these steps,
You can have two separate models in Transparse.lng, which would allow you to solve two or models with one code. You will need to have [SUBMODEL] blocks in your Lingo model.
Upvotes: 1