Skip to main content
Solved

How to start solving with an initial solution

  • Nov 24, 2019 7:05 PM UTC
  • 2 replies
  • 519 views

Forum|alt.badge.img

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, ???)

 

 

Best answer by deannezhang

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/

View original

2 replies

deannezhang
AIMMS Champ
Forum|alt.badge.img+3
  • AIMMS Champ
  • Answer
  • Nov 25, 2019 5:06 AM UTC

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/


Forum|alt.badge.img
  • Author
  • Explorer
  • Nov 25, 2019 9:57 AM UTC

Thanks a lot for your help. I worked well!

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


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

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