trustOptim.  A contributed package for the R programming language.

Copyright (c) 2012 Michael Braun

trustOptim is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

trustOptim is primarily MPL2 licensed, and unless otherwise indicated,
the Source Code Form included in this package 
is subject to the license terms of the Mozilla Public License v. 2.0.
You can obtain a copy of the MPL at <http://mozilla.org/MPL/2.0>

The files src/DSSM-FDHS.c and inst/misc/DSSM-FDHS.f are not covered by the MPL2 license.

Those files are distributed according to the terms of the ACM Software License
Agreement listed below.  This agreement limits the use of the package to academic,
research and other similar noncommerical uses.

In practice, this means that the SparseFD method in the trust.optim function depends
on the ACM software license.  All of the other methods are covered entirely by the MPL2.

########

src/DSSM-FDHS.c and inst/misc/DSSM-FDHS.f

The following applies to the code in files src/DSSM-FDHS.c and inst/misc/DSSM-FDHS.f

The original source code of the DSSM and FDHS algorithms was published by

Coleman, Thomas F., Burton S. Garbow and Jorge J. More. (1985).
Algorithm 636:  FORTRAN Subroutines for Estimating Sparse Hessian Matrices
ACM Transactions on Mathematical Software, 11(4), p. 378

The file DSSM-FDHS.f has been modifed to support DOUBLE PRECISION types. 
The file DSSM-FDHS.c was created using the f2c utility. 

Copyright © 1998, 2000, 2004-2009, 2010 by Association for Computing
Machinery, Inc.  Permission to include in application software or to
make digital or hard  copies of part or all of this work is subject to
the  following licensing agreement.


ACM SOFTWARE LICENSE AGREEMENT

All software, both binary and source published by the Association for
Computing  Machinery (hereafter, Software) is copyrighted by the
Association (hereafter, ACM) and ownership of all right, title and
interest in and to the  Software remains with ACM.  By using or
copying the Software,  User agrees to abide by the terms of this Agreement.


NONCOMMERCIAL USE

The ACM grants to you (hereafter, User) a royalty-free, nonexclusive
right to execute, copy, modify and distribute both the binary and
source code solely for academic, research  and other similar
noncommercial uses, subject to  the following conditions:

	1.  User acknowledges that the Software is still in the
	development stage and that it is being supplied  "as is,"
	without any support services  from ACM.  Neither ACM nor the
	AUTHOR MAKES ANY REPRESENTATIONS  OR WARRANTIES, EXPRESS OR
	IMPLIED, INCLUDING, WITHOUT  LIMITATION, ANY REPRESENTATIONS
	OR WARRANTIES OF THE  MERCHANTABILITY OR FITNESS FOR ANY
	PARTICULAR PURPOSE, OR T HAT THE APPLICATION OF THE SOFTWARE,
	WILL NOT INFRINGE ON  ANY PATENTS OR OTHER PROPRIETARY RIGHTS OF OTHERS.  

	2.  ACM shall not be held liable for direct, indirect,
	incidental or consequential  damages arising from any claim by
	User or any third party with respect to uses allowed under
	this Agreement, or from any use of the Software.

	3.  User agrees to fully indemnify and hold harmless ACM and/or the
	author(s) of the original  work from and against any and all claims,
	demands, suits, losses,  damages, costs and expenses arising out of
	the User's use of the Software,  including, without limitation,
	arising out of the User's  modification of the Software.

	4.  User may modify the Software and distribute that modified work to
	third parties provided  that:  
	(a) It clearly acknowledges that it contains material copyrighted by ACM 
	(b) No charge is associated with such copies 
	(c) User agrees to notify ACM and the Author(s) of the distribution 
	(d) User clearly notifies secondary users that such modified work is
	not the  original Software. 

	5.  User agrees that ACM, the authors of the original work and others
	may  enjoy a royalty-free, non-exclusive license to use, copy, modify
	and  redistribute these modifications to the Software made by the User
	and distributed to third parties as a derivative work under this agreement.

	6. This agreement will terminate immediately upon User's
	breach of,  or non-compliance with, any of its terms.  User
	may be  held liable for any copyright infringement or the
	infringement  of any other proprietary rights in the Software
	that is caused or facilitated by the User's failure to abide
	by the terms of this agreement.

	7.  This agreement will be construed and enforced in
	accordance with the  law of the State of New York applicable
	to contracts  performed entirely within the State.  The
	parties  irrevocably consent to the exclusive jurisdiction of
	the  state or federal courts located in the City of New York
	for  all disputes concerning this agreement.


COMMERCIAL USE

Any User wishing to make a COMMERCIAL USE of the Software must contact
ACM at <permissions@acm.org> to arrange an addendum to this license.
Commercial use includes, but is not limited to, (1) integrating or
incorporating all or part of the source code into a product for sale,
use or license by, or on behalf of User, or to third parties, or (2)
distribution of the binary or source code to third parties for use
with a commercial product sold or licensed by, or on behalf of, User.

*****