1 | /*
|
---|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | * contributor license agreements. See the NOTICE file distributed with
|
---|
4 | * this work for additional information regarding copyright ownership.
|
---|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | * (the "License"); you may not use this file except in compliance with
|
---|
7 | * the License. You may obtain a copy of the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | * See the License for the specific language governing permissions and
|
---|
15 | * limitations under the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | package agents.anac.y2019.harddealer.math3.optimization;
|
---|
19 |
|
---|
20 | import agents.anac.y2019.harddealer.math3.analysis.MultivariateVectorFunction;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * This interface is mainly intended to enforce the internal coherence of
|
---|
24 | * Commons-Math. Users of the API are advised to base their code on
|
---|
25 | * the following interfaces:
|
---|
26 | * <ul>
|
---|
27 | * <li>{@link agents.anac.y2019.harddealer.math3.optimization.DifferentiableMultivariateVectorOptimizer}</li>
|
---|
28 | * </ul>
|
---|
29 | *
|
---|
30 | * @param <FUNC> Type of the objective function to be optimized.
|
---|
31 | *
|
---|
32 | * @deprecated As of 3.1 (to be removed in 4.0).
|
---|
33 | * @since 3.0
|
---|
34 | */
|
---|
35 | @Deprecated
|
---|
36 | public interface BaseMultivariateVectorOptimizer<FUNC extends MultivariateVectorFunction>
|
---|
37 | extends BaseOptimizer<PointVectorValuePair> {
|
---|
38 | /**
|
---|
39 | * Optimize an objective function.
|
---|
40 | * Optimization is considered to be a weighted least-squares minimization.
|
---|
41 | * The cost function to be minimized is
|
---|
42 | * <code>∑weight<sub>i</sub>(objective<sub>i</sub> - target<sub>i</sub>)<sup>2</sup></code>
|
---|
43 | *
|
---|
44 | * @param f Objective function.
|
---|
45 | * @param target Target value for the objective functions at optimum.
|
---|
46 | * @param weight Weights for the least squares cost computation.
|
---|
47 | * @param startPoint Start point for optimization.
|
---|
48 | * @return the point/value pair giving the optimal value for objective
|
---|
49 | * function.
|
---|
50 | * @param maxEval Maximum number of function evaluations.
|
---|
51 | * @throws agents.anac.y2019.harddealer.math3.exception.DimensionMismatchException
|
---|
52 | * if the start point dimension is wrong.
|
---|
53 | * @throws agents.anac.y2019.harddealer.math3.exception.TooManyEvaluationsException
|
---|
54 | * if the maximal number of evaluations is exceeded.
|
---|
55 | * @throws agents.anac.y2019.harddealer.math3.exception.NullArgumentException if
|
---|
56 | * any argument is {@code null}.
|
---|
57 | * @deprecated As of 3.1. In 4.0, this will be replaced by the declaration
|
---|
58 | * corresponding to this {@link agents.anac.y2019.harddealer.math3.optimization.direct.BaseAbstractMultivariateVectorOptimizer#optimize(int,MultivariateVectorFunction,OptimizationData[]) method}.
|
---|
59 | */
|
---|
60 | @Deprecated
|
---|
61 | PointVectorValuePair optimize(int maxEval, FUNC f, double[] target,
|
---|
62 | double[] weight, double[] startPoint);
|
---|
63 | }
|
---|