Operations Research 15C: AMPL - Model and Data Separation

preview_player
Показать описание
Textbooks:

In this video, I'll introduce how to separate the model file and the data file in AMPL for LP problems. For small problems, it is convenient to combine the model and the data into just one file, and the coding in AMPL is straightforward. However, for large-scale optimization problems, the model and the data are usually separated into two files. The model file contains the generic problem formulation, and the data file contains the known values of the parameters in the model. If later the data is changed, you only need to make modifications on the data file and keep the model file untouched.

----------------------------------------
Рекомендации по теме
Комментарии
Автор

Hi Guys, please comment and let me know what you think about this Operations Research Open Course. Your feedback is really appreciated. If you enjoy the video, please subscribe and share. All my replies here are only related to the content in my own videos. I am afraid I won't be able to answer other questions. Thanks for your understanding.

YongWang
Автор

Thank you so much! Big help for my HW, explained much clearer than my professor does!

ifalpacas
Автор

How do we solve Big M Problems through this?

vatsalparikh
Автор

Hi Sir, may I ask how to load model file and data file into run file? I try many times but it shows "Can't find file". Pls kindly help me advise. Thank you!

TiềnTrương-mg
Автор

Thank you for your explanations, God bless you.

luisfernandocuestasanchez
Автор

While doing some basic solutions, I am having some issues, like variables not declared. How to solve this issue?

siddharthamaiti
Автор

谢谢王教授~ Thanks Pro.Wang, very informative I've written down all the notes.

susanxiao
Автор

Hi!, i have a question: What if i wanna just make a sum with I for 2 to 5?
How can i do it?

thewatcher
Автор

hi, what is the command to clear or clean the console in ampl iddle? thanks

RBC
Автор

There is an error, file sol is not found?

yaseenal-wesabi
Автор

Hello what do we do when some of the constraints are = or <= instead of >=

TheLordkillis
Автор

Thank you, it was helpful to understand

nasseralowa