Exemplo n.º 1
0
def table_solved_master():
    names = ['DECONVB', 'EIGENALS', 'FBRAIN3LS', 'OSCIPATH', 'PALMER5E', 'SSI']
    pyc = pycutest.Pycutest()
    problems = pyc.getProblems(names, aslist=True)
    problems = [p.problem_name for p in problems]
    rtc = RTCreator()
    rows = rtc.build_rows(files=files,
                          problem_header=problem_header,
                          result_header=result_header,
                          problems=problems)
    utils.toFile(rows, "result_solved_master.html", date=False)
Exemplo n.º 2
0
def table_solved_ipopt_master():
    names = [
        '3PK', 'AIRCRFTB', 'AKIVA', 'ALLINIT', 'ALLINITU', 'ARGLINA',
        'ARGLINB', 'ARGLINC', 'ARGTRIGLS', 'ARWHEAD', 'BA-L1LS', 'BA-L1SPLS',
        'BARD', 'BDQRTIC', 'BEALE', 'BENNETT5LS', 'BIGGS3', 'BIGGS5', 'BIGGS6',
        'BOX2', 'BOX3', 'BOXBODLS', 'BQP1VAR', 'BQPGABIM', 'BQPGASIM',
        'BRKMCC', 'BROWNAL', 'BROWNBS', 'BROWNDEN', 'BROWNDENE', 'BROYDN3DLS',
        'BROYDN7D', 'BROYDNBDLS', 'BRYBND', 'CAMEL6', 'CHEBYQAD', 'CHNROSNB',
        'CHNRSNBM', 'CLIFF', 'CRAGGLVY', 'CUBE', 'DANWOODLS', 'DECONVU',
        'DENSCHNA', 'DENSCHNB', 'DENSCHNC', 'DENSCHND', 'DENSCHNE', 'DENSCHNF',
        'DIXMAANA', 'DIXMAANB', 'DIXMAANC', 'DIXMAAND', 'DIXMAANE', 'DIXMAANF',
        'DIXMAANG', 'DIXMAANH', 'DJTL', 'DQDRTIC', 'ECKERLE4LS', 'EDENSCH',
        'EG1', 'EG2', 'ENGVAL1', 'ENGVAL2', 'ENSOLS', 'ERRINROS', 'ERRINRSM',
        'EXPFIT', 'EXPLIN', 'EXPLIN2', 'EXTROSNB', 'FBRAIN2LS', 'FBRAINLS',
        'FLETCBV2', 'FLETCHCR', 'FREUROTH', 'GAUSS1LS', 'GAUSS2LS', 'GAUSS3LS',
        'GAUSSIAN', 'GBRAINLS', 'GENROSE', 'GENROSEB', 'GROWTHLS', 'GULF',
        'HADAMALS', 'HAIRY', 'HARKERP2', 'HART6', 'HATFLDA', 'HATFLDB',
        'HATFLDC', 'HATFLDD', 'HATFLDE', 'HATFLDFL', 'HEART6LS', 'HEART8LS',
        'HELIX', 'HIELOW', 'HILBERTA', 'HILBERTB', 'HIMMELBB', 'HIMMELBG',
        'HIMMELBH', 'HIMMELP1', 'HOLMES', 'HS1', 'HS110', 'HS2', 'HS25', 'HS3',
        'HS38', 'HS3MOD', 'HS4', 'HS45', 'HS5', 'HUMPS', 'INTEQNELS', 'JENSMP',
        'KOEBHELB', 'KOWOSB', 'LANCZOS1LS', 'LANCZOS2LS', 'LANCZOS3LS',
        'LIARWHD', 'LINVERSE', 'LOGHAIRY', 'LOGROS', 'LSC1LS', 'LUKSAN11LS',
        'LUKSAN12LS', 'LUKSAN13LS', 'LUKSAN14LS', 'LUKSAN15LS', 'LUKSAN16LS',
        'LUKSAN17LS', 'LUKSAN21LS', 'LUKSAN22LS', 'MANCINO', 'MARATOSB',
        'MAXLIKA', 'MCCORMCK', 'MDHOLE', 'MEXHAT', 'MGH17LS', 'MINSURF',
        'MISRA1ALS', 'MISRA1BLS', 'MISRA1CLS', 'MISRA1DLS', 'MOREBV',
        'MSQRTALS', 'MSQRTBLS', 'NCB20B', 'NELSONLS', 'NONSCOMP', 'OSBORNEA',
        'OSBORNEB', 'OSLBQP', 'PALMER1', 'PALMER1A', 'PALMER1B', 'PALMER1C',
        'PALMER1D', 'PALMER1E', 'PALMER2', 'PALMER2A', 'PALMER2B', 'PALMER2C',
        'PALMER2E', 'PALMER3', 'PALMER3A', 'PALMER3B', 'PALMER3C', 'PALMER4',
        'PALMER4A', 'PALMER4B', 'PALMER4C', 'PALMER4E', 'PALMER5C', 'PALMER5D',
        'PALMER6A', 'PALMER8A', 'PALMER8E', 'PARKCH', 'PENALTY2', 'PENTDI',
        'PFIT1LS', 'PFIT2LS', 'PFIT3LS', 'PFIT4LS', 'POWELLBSLS', 'POWELLSG',
        'PROBPENL', 'PSPDOC', 'QUDLIN', 'RAT43LS', 'ROSENBR', 'S308', 'S368',
        'SANTALS', 'SBRYBND', 'SCHMVETT', 'SENSORS', 'SIM2BQP', 'SIMBQP',
        'SINEALI', 'SINEVAL', 'SISSER', 'SNAIL', 'SPECAN', 'SROSENBR',
        'SSBRYBND', 'STRATEC', 'TESTQUAD', 'THURBERLS', 'TOINTGOR', 'TOINTGSS',
        'TOINTPSP', 'TOINTQOR', 'TQUARTIC', 'TRIDIA', 'VAREIGVL', 'VESUVIOLS',
        'VESUVIOULS', 'VIBRBEAM', 'WATSON', 'WEEDS', 'WOODS', 'YATP1LS',
        'YATP2LS', 'YFIT', 'YFITU', 'ZANGWIL2'
    ]

    pyc = pycutest.Pycutest()
    problems = pyc.getProblems(names, aslist=True)
    problems = [p.problem_name for p in problems]
    rtc = RTCreator()
    rows = rtc.build_rows(files=files,
                          problem_header=problem_header,
                          result_header=result_header,
                          problems=problems)
    utils.toFile(rows, "result_solved.html", date=False)
Exemplo n.º 3
0
 def run(self, driver, problems=None):
     if problems is None:
         pyc = pycutest.Pycutest()
         problems = pyc.getProblems(aslist=True)
     results = []
     for i, problem in enumerate(problems):
         print("{:4g}/{:4g}\t{:12}\t".format(i, len(problems),
                                             problem.problem_name),
               end="",
               flush=True)
         result = driver.run(problem)
         print(result.success)
         results.append((problem, result))
     rows = self._resultsToCsvRows(results)
     return rows
Exemplo n.º 4
0
def table_unsolved_ipopt_master():
    names = [
        'EIGENBLS', 'EIGENCLS', 'FLETCBV3', 'FLETCHBV', 'GENHUMPS', 'NONCVXU2',
        'NONMSQRT', 'PALMER5A', 'PALMER7A', 'PALMER7E', 'POWELLBC', 'RAYBENDL',
        'RAYBENDS'
    ]
    pyc = pycutest.Pycutest()
    problems = pyc.getProblems(names, aslist=True)
    problems = [p.problem_name for p in problems]
    rtc = RTCreator()
    rows = rtc.build_rows(files=files,
                          problem_header=problem_header,
                          result_header=result_header,
                          problems=problems)
    utils.toFile(rows, "result_unsolved.html", date=False)
Exemplo n.º 5
0
def table_solved_ipopt():
    names = [
        'BDEXP', 'BIGGSB1', 'BLEACHNG', 'BQPGAUSS', 'CHAINWOO', 'CHENHARK',
        'CHWIRUT1LS', 'CHWIRUT2LS', 'DIXMAANI', 'DIXMAANJ', 'DIXMAANK',
        'DIXMAANL', 'DIXMAANM', 'DIXMAANN', 'DIXMAANO', 'DIXMAANP', 'DQRTIC',
        'DRCAV1LQ', 'DRCAV2LQ', 'DRCAV3LQ', 'EXPQUAD', 'FLETBV3M', 'HAHN1LS',
        'HIMMELBF', 'HYDC20LS', 'INDEF', 'JIMACK', 'KIRBY2LS', 'LSC2LS',
        'MEYER3', 'MGH09LS', 'MGH10LS', 'NONCVXUN', 'NONDIA', 'NONDQUAR',
        'PALMER3E', 'PALMER5B', 'PALMER6C', 'PALMER6E', 'PALMER7C', 'PALMER8C',
        'PENALTY1', 'QR3DLS', 'QRTQUAD', 'QUARTC', 'RAT42LS', 'ROSZMAN1LS',
        'SCOSINE', 'SINQUAD', 'SPARSINE', 'SPMSRTLS', 'SSCOSINE', 'VARDIM',
        'VESUVIALS', 'WALL10'
    ]
    pyc = pycutest.Pycutest()
    problems = pyc.getProblems(names, aslist=True)
    problems = [p.problem_name for p in problems]
    rtc = RTCreator()
    rows = rtc.build_rows(files=files,
                          problem_header=problem_header,
                          result_header=result_header,
                          problems=problems)
    utils.toFile(rows, "result_solved_ipopt.html", date=False)
Exemplo n.º 6
0
import optiview
import pycutest
from solver import Solver
import sys
import traceback
from solver import NLP

v = optiview.Visualizer()
pyc = pycutest.Pycutest()
problems = pyc.getProblems(constraint=False,
                           bounded=True,
                           aslist=True)

# 3PK Reached maximum: 10001 of iterations
if False:
    problem = [p for p in problems if p.problem_name == "3PK"][0]
    nlp = NLP(fg=problem.fg, x0=problem.var_init, h=problem.h,
              lb=problem.var_bounds_l, ub=problem.var_bounds_u)
    s = Solver()
    try:
        res = s.solve(nlp)
    except Exception:
        traceback.print_exc(file=sys.stdout)
# PFIT2LS
if False:
    problem = [p for p in problems if p.problem_name == "PFIT2LS"][0]
    nlp = NLP(fg=problem.fg, x0=problem.var_init, h=problem.h,
              lb=problem.var_bounds_l, ub=problem.var_bounds_u)
    s = Solver()
    try:
        res = s.solve(nlp)