Ampl read lp file




















Omidi A. Omidi 5, 1 1 gold badge 6 6 silver badges 30 30 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Qian Zhang Qian Zhang 3 3 silver badges 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Then again, there doesn't seem to be a good reason to do so, particularly since you apparently do not need to modify the models before solving them.

AMPL does not allow the model to be changed within a "for" or "while" loop, so you can't write a short script to read different models. If you have one model with different data files then it's possible to write a loop using string expressions, model a. Bob Fourer Reply to author.

I am wondering is there an easy way to convert Ampl file to cplex? I did not buy ampl so I can not use cplex in ampl. There are well-known ways to make such a translation. If you need help with doing it, then that should be posted as a separate question.

You will have the best chance of getting an answer if you show the complete AMPL constraint that you are trying to translate. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How I can convert ampl file to cplex? Ask Question. Asked 2 years, 8 months ago. Active 2 years, 8 months ago. Viewed times.



0コメント

  • 1000 / 1000