100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
amplide £7.16   Add to cart

Case

amplide

 4 views  0 purchase

Case of 12 pages for the course Amplide at Abacus College, Oxford (amplide)

Preview 2 out of 12  pages

  • September 20, 2024
  • 12
  • 2024/2025
  • Case
  • Best
  • A
All documents for this subject (10)
avatar-seller
1097434525U
________________________________________________________________________
____________________________________________________________
Using AMPL/MINOS



MINOS is an optimization package for linear and nonlinear mathematical programs in continu-
ous variables. This supplement to AMPL: A Modeling Language for Mathematical Programming
describes the most important features of MINOS for AMPL users. Further information on MINOS is
available from:
Stanford Business Software, Inc.
2672 Bayshore Parkway, Suite 304
Mountain View, CA 94043
415-962-8719; fax 415-962-1869
Section §1 below describes the kinds of problems to which MINOS is applicable, and Section
§2 explains in general terms how solver-specific directives can be passed from AMPL to MINOS.
Sections §3 and §4 then briefly introduce the algorithms that MINOS uses for linear and for nonlin-
ear programming, respectively, and describe the relevant algorithmic directives. Section §5 pre-
sents directives for controlling listings from MINOS, and Section §6 discusses options for restarting
from a known solution or basis.

§1 Applicability
MINOS is designed to solve the linear programs described in Chapters 1-8 and 11-12 of AMPL:
A Modeling Language for Mathematical Programming, as well as the ‘‘smooth’’ nonlinear pro-
grams described in Chapter 13. Smooth nonlinear functions can be accommodated in both the
objective and the constraints; nonlinear equation systems may also be solved by omitting an objec-
tive. Nonsmooth nonlinearities are also accepted, but MINOS is not designed for them and in gen-
eral will not produce reliable results when they are present.
MINOS does not solve integer programs as described in Chapter 15. When presented with an
integer program, MINOS ignores the integrality restrictions on the variables, as indicated by a mes-
sage such as
MINOS 5.4: ignoring integrality of 5 variables
It then solves the continuous relaxation of the resulting problem, and returns a solution in which
some of the integer variables may have fractional values.
MINOS can solve piecewise-linear programs, as described in Chapter 14, provided that they sat-
isfy certain rules that permit them to be transformed to linear programs. Any piecewise-linear term
in a minimized objective must be convex, its slopes forming an increasing sequence as in:
<<-1,1,3,5; -5,-1,0,1.5,3>> x[j]
Any piecewise-linear term in a maximized objective must be concave, its slopes forming a decreas-
ing sequence as in:
<<1,3; 1.5,0.5,0.25>> x[j]

, 2 USING AMPL/MINOS



In the constraints, any piecewise-linear term must be either convex and on the left-hand side of a ≤
constraint (or equivalently, the right-hand side of a ≥ constraint), or else concave and on the left-
hand side of a ≥ constraint (or equivalently, the right-hand side of a ≤ constraint). AMPL automati-
cally converts the piecewise-linear program to a linear one, sends the latter to MINOS, and converts
the solution back; the conversion has the effect of adding a variable to correspond to each linear
piece. Piecewise-linear programs that violate the above rules are converted to integer programs,
which are treated as described in the preceding paragraph; MINOS returns a solution to the continu-
ous relaxation of the equivalent integer program, which in general is not optimal for the original
piecewise-linear problem.


§2 Controlling MINOS from AMPL
In many instances, you can successfully apply MINOS by simply specifying a model and data,
setting the solver option to minos, and typing solve. For larger linear programs and more
difficult nonlinear programs, however, you may need to pass specific directives to MINOS to obtain
the desired results.
To give directives to MINOS, you must first assign an appropriate character string to the AMPL
option called minos_options. When solve invokes MINOS, it breaks this string into a series
of individual directives. Here is an example:
ampl: model diet.mod;
ampl: data diet.dat;
ampl: option solver minos;
ampl: option minos_options ’crash_option=0 \
ampl? feasibility_tolerance=1.0e-8 scale=no \
ampl? iterations_limit=100’;
ampl: solve;
MINOS 5.4:
crash_option=0
feasibility_tolerance=1.0e-8
scale=no
iterations_limit=100
MINOS 5.4: optimal solution found.
4 iterations, objective 88.2
MINOS confirms each directive; it will display an error message if it encounters one that it does not
recognize.
All of the directives described below have the form of an identifier, an = sign, and a value;
unlike AMPL, MINOS treats upper-case and lower-case letters as being the same. You may store
any number of concatenated directives in minos_options. The example above shows how to
type all the directives in one long string, using the \ character to indicate that the string continues
on the next line. Alternatively, you can list several strings, which AMPL will automatically con-
catenate:
ampl: option minos_options ’crash_option=0’
ampl? ’ feasibility_tolerance=1.0e-8 scale=no’
ampl? ’ iterations_limit=100’;
In this form, you must take care to supply the space that goes between the directives; here we have
put it before feasibility_tolerance and iterations_limit.
If you have specified the directives above, and then want to set optimality_tolerance
to 1.0e–8 and change crash_option to 1, you might think to type:
ampl: option minos_options
ampl? ’optimality_tolerance=1.0e-8 crash_option=1’;

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller 1097434525U. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £7.16. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85443 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£7.16
  • (0)
  Add to cart