/** * Print the name and title of the CMAES algorithm * * @param textCase the text case * @param textOut the text output destination * @param useShortName use the short name? * @return the next case */ protected static final ETextCase printCMAES( final ETextCase textCase, final ITextOutput textOut, final boolean useShortName) { textOut.append( useShortName ? OptimizationBasedFitter.NAME_CMAES_SHORT : OptimizationBasedFitter.NAME_CMAES_LONG); if (textOut instanceof IComplexText) { try (final BibliographyBuilder builder = ((IComplexText) textOut).cite(ECitationMode.ID, textCase, ESequenceMode.COMMA)) { builder.add(OptimizationBasedFitter.REFERENCE_CMAES); } } return textCase.nextCase(); }
/** {@inheritDoc} */ @Override protected ETextCase printNameInDescription( final ITextOutput textOut, final ETextCase textCase, final boolean fromYAxisSemanticComponent) { ETextCase next; next = super.printNameInDescription(textOut, textCase, fromYAxisSemanticComponent); if (!fromYAxisSemanticComponent) { if (textOut instanceof IComplexText) { try (final BibliographyBuilder builder = ((IComplexText) textOut).cite(ECitationMode.ID, next, ESequenceMode.COMMA)) { builder.addAll(ECDF.REFERENCES); } } } return next.nextCase(); }
/** * Print the name and title of the Nelder-Mead algorithm * * @param textCase the text case * @param textOut the text output destination * @param useShortName use the short name? * @return the next case */ protected static final ETextCase printNelderMead( final ETextCase textCase, final ITextOutput textOut, final boolean useShortName) { ETextCase next; textOut.append(OptimizationBasedFitter.NAME_NELDER_MEAD); if (!useShortName) { textOut.append(' '); next = textCase.nextCase().appendWord(OptimizationBasedFitter.NAME_ALGORITHM, textOut); } else { next = textCase.nextCase(); } if (textOut instanceof IComplexText) { try (final BibliographyBuilder builder = ((IComplexText) textOut).cite(ECitationMode.ID, next, ESequenceMode.COMMA)) { builder.add(OptimizationBasedFitter.REFERENCE_NELDER_MEAD); } } return next.nextCase(); }
/** * Print the name and title of the Levenberg-Marcquardt algorithm * * @param textCase the text case * @param textOut the text output destination * @param useShortName use the short name? * @return the next case */ protected static final ETextCase printLevenbergMarcquardt( final ETextCase textCase, final ITextOutput textOut, final boolean useShortName) { ETextCase next; textOut.append(OptimizationBasedFitter.NAME_LEVENBERG_MARCQUARDT); next = textCase.nextCase(); if (!useShortName) { textOut.append(' '); next = next.appendWord(OptimizationBasedFitter.NAME_ALGORITHM, textOut); } if (textOut instanceof IComplexText) { try (final BibliographyBuilder builder = ((IComplexText) textOut).cite(ECitationMode.ID, next, ESequenceMode.COMMA)) { builder.add(OptimizationBasedFitter.REFERENCE_LEVENBERG_MARCQUARDT_1); builder.add(OptimizationBasedFitter.REFERENCE_LEVENBERG_MARCQUARDT_2); } } return next.nextCase(); }
static { try (final BibliographyBuilder local = new BibliographyBuilder()) { try (final BibArticleBuilder bab = local.article()) { try (final BibDateBuilder d = bab.date()) { d.fromNow(); } bab.setTitle("A very important article"); // $NON-NLS-1$ bab.setJournal("The journal of important things"); // $NON-NLS-1$ bab.setStartPage("1"); // $NON-NLS-1$ bab.setEndPage("10"); // $NON-NLS-1$ bab.setVolume("4"); // $NON-NLS-1$ bab.setNumber("33"); // $NON-NLS-1$ try (final BibAuthorsBuilder aa = bab.setAuthors()) { try (final BibAuthorBuilder a = aa.author()) { a.setFamilyName("Funnyman"); // $NON-NLS-1$ a.setPersonalName("Jake"); // $NON-NLS-1$ } } } STATIC_BIB_ENTRY = local.getResult().get(0); } }
/** * build the references to be used when plotting an ECDF * * @return the bibliography of references */ private static final Bibliography __buildReferences() { final BibAuthor hoos; hoos = new BibAuthor( // "Holger H.", //$NON-NLS-1$ "Hoos"); //$NON-NLS-1$ try (final BibliographyBuilder bibBuilder = new BibliographyBuilder()) { try (final BibInProceedingsBuilder inProc = // bibBuilder.inProceedings()) { try (final BibAuthorsBuilder authors = inProc.setAuthors()) { authors.addAuthor(hoos); try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Thomas"); // $NON-NLS-1$ author.setFamilyName("St\u00fctzle"); // $NON-NLS-1$ } } inProc.setTitle( // "Evaluating Las Vegas Algorithms \u2012 Pitfalls and Remedies"); //$NON-NLS-1$ try (final BibProceedingsBuilder proc = inProc.proceedings()) { proc.setTitle( // "Proceedings of the 14th Conference on Uncertainty in Artificial Intelligence (UAI'98)"); //$NON-NLS-1$ try (final BibDateBuilder date = proc.startDate()) { date.setYear(1998); date.setMonth(EBibMonth.JULY); date.setDay(24); } try (final BibDateBuilder date = proc.endDate()) { date.setYear(1998); date.setMonth(EBibMonth.JULY); date.setDay(26); } try (final BibAuthorsBuilder editors = proc.setEditors()) { try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("Gregory F."); // $NON-NLS-1$ editor.setFamilyName("Cooper"); // $NON-NLS-1$ } try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("Serafin"); // $NON-NLS-1$ editor.setFamilyName("Moral"); // $NON-NLS-1$ } } try (final BibOrganizationBuilder loc = proc.location()) { loc.setAddress("Madison, WI, USA"); // $NON-NLS-1$ } try (final BibOrganizationBuilder pub = proc.publisher()) { pub.setAddress("San Francisco, CA, USA"); // $NON-NLS-1$ pub.setName("Morgan Kaufmann Publishers Inc."); // $NON-NLS-1$ } } inProc.setStartPage("238"); // $NON-NLS-1$ inProc.setEndPage("245"); // $NON-NLS-1$ inProc.setURL( // "http://www.intellektik.informatik.tu-darmstadt.de/TR/1998/98-02.ps.Z"); //$NON-NLS-1$ } try (final BibInProceedingsBuilder inProc = // bibBuilder.inProceedings()) { try (final BibAuthorsBuilder authors = inProc.setAuthors()) { try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Dave Andrew Douglas"); // $NON-NLS-1$ author.setFamilyName("Tompkins"); // $NON-NLS-1$ } authors.addAuthor(hoos); } inProc.setTitle( // "UBCSAT: An Implementation and Experimentation Environment for SLS Algorithms for SAT and MAX-SAT"); //$NON-NLS-1$ try (final BibProceedingsBuilder proc = inProc.proceedings()) { proc.setTitle( // "Revised Selected Papers from the Seventh International Conference on Theory and Applications of Satisfiability Testing (SAT'04)"); //$NON-NLS-1$ try (final BibDateBuilder date = proc.startDate()) { date.setYear(2004); date.setMonth(EBibMonth.MAY); date.setDay(10); } try (final BibDateBuilder date = proc.endDate()) { date.setYear(2004); date.setMonth(EBibMonth.MAY); date.setDay(13); } try (final BibAuthorsBuilder editors = proc.setEditors()) { editors.addAuthor(hoos); try (final BibAuthorBuilder editor = editors.author()) { editor.setPersonalName("David G."); // $NON-NLS-1$ editor.setFamilyName("Mitchell"); // $NON-NLS-1$ } } try (final BibOrganizationBuilder loc = proc.location()) { loc.setAddress("Vancouver, BC, Canada"); // $NON-NLS-1$ } try (final BibOrganizationBuilder pub = proc.publisher()) { pub.setAddress("Berlin, Germany"); // $NON-NLS-1$ pub.setName("Springer-Verlag GmbH"); // $NON-NLS-1$ } proc.setSeries("Lecture Notes in Computer Science (LNCS)"); // $NON-NLS-1$ proc.setVolume("3542"); // $NON-NLS-1$ } inProc.setDOI("10.1007/11527695"); // $NON-NLS-1$ inProc.setStartPage("306"); // $NON-NLS-1$ inProc.setEndPage("320"); // $NON-NLS-1$ inProc.setURL( // "http://ubcsat.dtompkins.com/downloads/sat04proc-ubcsat.pdf?attredirects=0"); //$NON-NLS-1$ } try (BibTechReportBuilder report = bibBuilder.techReport()) { try (final BibAuthorsBuilder authors = report.setAuthors()) { try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Nikolaus"); // $NON-NLS-1$ author.setFamilyName("Hansen"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Anne"); // $NON-NLS-1$ author.setFamilyName("Auger"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Steffen"); // $NON-NLS-1$ author.setFamilyName("Finck"); // $NON-NLS-1$ } try (final BibAuthorBuilder author = authors.author()) { author.setPersonalName("Raymond"); // $NON-NLS-1$ author.setFamilyName("Ros"); // $NON-NLS-1$ } } report.setTitle( // "Real-Parameter Black-Box Optimization Benchmarking: Experimental Setup"); //$NON-NLS-1$ try (final BibOrganizationBuilder pub = report.publisher()) { pub.setAddress("Orsay, France"); // $NON-NLS-1$ pub.setName( // "Universit\u00e9 Paris Sud, Institut National de Recherche en Informatique et en Automatique (INRIA) Futurs, \u00c9quipe TAO"); //$NON-NLS-1$ } try (final BibDateBuilder date = report.date()) { date.setYear(2012); date.setMonth(EBibMonth.MARCH); date.setDay(24); } report.setURL( // "http://coco.lri.fr/BBOB-downloads/download11.05/bbobdocexperiment.pdf"); //$NON-NLS-1$ } return bibBuilder.getResult(); } }