Solved

How to start solving with an initial solution

  • 24 November 2019
  • 2 replies
  • 387 views

Badge

Hi, 

I have an initial solution assigned to the two-dimensional variable x(i,j) . 

How can I start solving the mathprogram using this initial solution?

I did the following steps but I need details about the element parameter which is the second argument  in sendtosolversession?)

 

Thanks in advance

  1. read x from file “sol.txt”;
  1. myGMP := GMP::Instance::Generate(MyModel);
  2.  SolverSession :=GMP::Instance::CreateSolverSession(myGMP);
  3. GMP::Solution::SendToSolverSession(SolverSession, ???)

 

 

icon

Best answer by deannezhang 25 November 2019, 06:06

View original

2 replies

Userlevel 4
Badge +3

If you just need using the initial solution as MIP start point, GMP functions is not necessary. You just need to set the corresponding solver options, assign the value to the variable, and use solve statement. You can refer to this link:

https://www.aimms.com/english/developers/resources/knowledge-base/kb00011/

Badge

Thanks a lot for your help. I worked well!

May you kindly also explain how to do it using GMP function? 

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator