Specifying Data - AMPL
9_______________________________________ ________________________________________ _________________Specifying DataAs we emphasize throughout this book, there is a distinction between anAMPLmodelfor an optimization problem, and the data values that define a particular instance of theproblem. Chapters 5 through 8 focused on the declarations of sets, parameters, variables,objectives and constraints that are necessary to describe models. In this chapter and thenext, we take a closer look at the statements that specify the ofAMPLdata statementsappear in almost every chapter. These statementsoffer several formats for lists and tables of set and parameter values.
(PITT,*) FRA WIN STL FRE ; there is the following statement for the values of cost: param cost := [GARY,*] DET 14 LAN 11 STL 16 LAF 8 [CLEV,*] FRA 27 DET 9 LAN 12 WIN 9 STL 26 LAF 17 [PITT,*] FRA 24 WIN 13 STL 28 FRE 99 ; The templates are given in brackets to distinguish them from the set templates in paren-...
Download Specifying Data - AMPL
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: