• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java OptimizationData类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.commons.math3.optim.OptimizationData的典型用法代码示例。如果您正苦于以下问题:Java OptimizationData类的具体用法?Java OptimizationData怎么用?Java OptimizationData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OptimizationData类属于org.apache.commons.math3.optim包,在下文中一共展示了OptimizationData类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link GoalType}</li>
 *  <li>{@link SearchInterval}</li>
 *  <li>{@link UnivariateObjectiveFunction}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof SearchInterval) {
            final SearchInterval interval = (SearchInterval) data;
            min = interval.getMin();
            max = interval.getMax();
            start = interval.getStartValue();
            continue;
        }
        if (data instanceof UnivariateObjectiveFunction) {
            function = ((UnivariateObjectiveFunction) data).getObjectiveFunction();
            continue;
        }
        if (data instanceof GoalType) {
            goal = (GoalType) data;
            continue;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:38,代码来源:UnivariateOptimizer.java


示例2: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data. The following data will be looked for:
 * <ul>
 *  <li>{@link Target}</li>
 *  <li>{@link Weight}</li>
 *  <li>{@link ModelFunction}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof ModelFunction) {
            model = ((ModelFunction) data).getModelFunction();
            continue;
        }
        if (data instanceof Target) {
            target = ((Target) data).getTarget();
            continue;
        }
        if (data instanceof Weight) {
            weightMatrix = ((Weight) data).getWeight();
            continue;
        }
    }

    // Check input consistency.
    checkParameters();
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:37,代码来源:MultivariateVectorOptimizer.java


示例3: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 * If the weight matrix is specified, the {@link #weightMatrixSqrt}
 * field is recomputed.
 *
 * @param optData Optimization data. The following data will be looked for:
 * <ul>
 *  <li>{@link Weight}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof Weight) {
            weightMatrixSqrt = squareRoot(((Weight) data).getWeight());
            // If more data must be parsed, this statement _must_ be
            // changed to "continue".
            break;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:28,代码来源:AbstractLeastSquaresOptimizer.java


示例4: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link ModelFunctionJacobian}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof ModelFunctionJacobian) {
            jacobian = ((ModelFunctionJacobian) data).getModelFunctionJacobian();
            // If more data must be parsed, this statement _must_ be
            // changed to "continue".
            break;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:27,代码来源:JacobianMultivariateVectorOptimizer.java


示例5: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link ObjectiveFunction}</li>
 *  <li>{@link GoalType}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof GoalType) {
            goal = (GoalType) data;
            continue;
        }
        if (data instanceof ObjectiveFunction) {
            function = ((ObjectiveFunction) data).getObjectiveFunction();
            continue;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:30,代码来源:MultivariateOptimizer.java


示例6: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link ObjectiveFunctionGradient}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if  (data instanceof ObjectiveFunctionGradient) {
            gradient = ((ObjectiveFunctionGradient) data).getObjectiveFunctionGradient();
            // If more data must be parsed, this statement _must_ be
            // changed to "continue".
            break;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:27,代码来源:GradientMultivariateOptimizer.java


示例7: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link AbstractSimplex}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof AbstractSimplex) {
            simplex = (AbstractSimplex) data;
            // If more data must be parsed, this statement _must_ be
            // changed to "continue".
            break;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:27,代码来源:SimplexOptimizer.java


示例8: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data. The following data will be looked for:
 * <ul>
 *  <li>{@link Sigma}</li>
 *  <li>{@link PopulationSize}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof Sigma) {
            inputSigma = ((Sigma) data).getSigma();
            continue;
        }
        if (data instanceof PopulationSize) {
            lambda = ((PopulationSize) data).getPopulationSize();
            continue;
        }
    }

    checkParameters();
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:31,代码来源:CMAESOptimizer.java


示例9: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * {@inheritDoc}
 *
 * @param optData Optimization data.
 * In addition to those documented in
 * {@link LinearOptimizer#parseOptimizationData(OptimizationData[])
 * LinearOptimizer}, this method will register the following data:
 * <ul>
 *  <li>{@link SolutionCallback}</li>
 *  <li>{@link PivotSelectionRule}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // reset the callback before parsing
    solutionCallback = null;

    for (OptimizationData data : optData) {
        if (data instanceof SolutionCallback) {
            solutionCallback = (SolutionCallback) data;
            continue;
        }
        if (data instanceof PivotSelectionRule) {
            pivotSelection = (PivotSelectionRule) data;
            continue;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:32,代码来源:SimplexSolver.java


示例10: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link LinearObjectiveFunction}</li>
 *  <li>{@link LinearConstraintSet}</li>
 *  <li>{@link NonNegativeConstraint}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if (data instanceof LinearObjectiveFunction) {
            function = (LinearObjectiveFunction) data;
            continue;
        }
        if (data instanceof LinearConstraintSet) {
            linearConstraints = ((LinearConstraintSet) data).getConstraints();
            continue;
        }
        if  (data instanceof NonNegativeConstraint) {
            nonNegative = ((NonNegativeConstraint) data).isRestrictedToNonNegative();
            continue;
        }
    }
}
 
开发者ID:biocompibens,项目名称:SME,代码行数:35,代码来源:LinearOptimizer.java


示例11: parseOptimizationData

import org.apache.commons.math3.optim.OptimizationData; //导入依赖的package包/类
/**
 * Scans the list of (required and optional) optimization data that
 * characterize the problem.
 *
 * @param optData Optimization data.
 * The following data will be looked for:
 * <ul>
 *  <li>{@link BracketingStep}</li>
 * </ul>
 */
@Override
protected void parseOptimizationData(OptimizationData... optData) {
    // Allow base class to register its own data.
    super.parseOptimizationData(optData);

    // The existing values (as set by the previous call) are reused if
    // not provided in the argument list.
    for (OptimizationData data : optData) {
        if  (data instanceof BracketingStep) {
            initialStep = ((BracketingStep) data).getBracketingStep();
            // If more data must be parsed, this statement _must_ be
            // changed to "continue".
            break;
        }
    }

    checkParameters();
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:29,代码来源:NonLinearConjugateGradientOptimizer.java



注:本文中的org.apache.commons.math3.optim.OptimizationData类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PdfException类代码示例发布时间:2022-05-22
下一篇:
Java Container类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap