相同的优化算法导致不同的系数和计算时间

时间:2016-08-01 09:35:02

标签: matlab mathematical-optimization

我注意到当我在MATLAB中使用fmincon函数运行优化方法时,例如active-set方法,每次运行算法时,结果系数和计算时间都不同。我没有改变起点,我只是一个接一个地运行方法。

我理解这是全局优化算法的情况,因为他们在后台使用随机算法。但为什么同样的事情发生在当地的最小方法上呢?

编辑:添加代码

{
    PDDocument document = null;
    document = PDDocument.load(new File("test.pdf"));
    document.getClass();
    if (!document.isEncrypted()) {
        PDFTextStripperByArea stripper = new PDFTextStripperByArea();
        stripper.setSortByPosition(true);
        PDFTextStripper Tstripper = new PDFTextStripper();
        String st = Tstripper.getText(document);
        System.out.println("Text:" + st);
    }
} catch (Exception e) {
    e.printStackTrace();
}`

每次运行方法时,界限和约束都是常量,起点是相同的。

0 个答案:

没有答案
相关问题