dukeboard / kevoree-genetic Goto Github PK
View Code? Open in Web Editor NEWGenetic Framework for Model@Runtime optimisation
Genetic Framework for Model@Runtime optimisation
It will be interesting to create many different groups, each one having different settings, mutation rate, crossover function, etc. and specify the migration scheme and rate between the different groups.
It will be interesting to create a user-defined crossover function, the same way that the user can create mutation functions.
Exception in thread "main" jet.runtime.Intrinsics$JetNullPointerException
at org.kevoree.modeling.optimization.engine.greedy.GreedyEngine.computeStep(GreedyEngine.kt:148)
at org.kevoree.modeling.optimization.engine.greedy.GreedyEngine.solve(GreedyEngine.kt:223)
at org.kevoree.modeling.genetic.genetictest.SampleRunnerGreedy.main(SampleRunnerGreedy.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Line: val newStep = _executionModelFactory!!.createStep()
[INFO] Kevoree :: Modeling :: Optimization :: Framework :: Execution :: Model SKIPPED
Exception in thread "main" java.lang.AssertionError: Wrong line separators: '\r\n\r\nclass ...' at offset 0
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:66)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:113)
at com.intellij.openapi.util.text.StringUtil.assertValidSeparators(StringUtil.java:2209)
at com.intellij.openapi.editor.impl.DocumentImpl.assertValidSeparators(DocumentImpl.java:624)
at com.intellij.openapi.editor.impl.DocumentImpl.(DocumentImpl.java:124)
at com.intellij.openapi.editor.impl.DocumentImpl.(DocumentImpl.java:119)
at com.intellij.openapi.editor.impl.DocumentImpl.(DocumentImpl.java:115)
at com.intellij.core.CoreApplicationEnvironment$1.fun(CoreApplicationEnvironment.java:103)
at com.intellij.core.CoreApplicationEnvironment$1.fun(CoreApplicationEnvironment.java:100)
at com.intellij.mock.MockFileDocumentManagerImpl$1.create(MockFileDocumentManagerImpl.java:50)
at com.intellij.mock.MockFileDocumentManagerImpl$1.create(MockFileDocumentManagerImpl.java:44)
at com.intellij.util.containers.WeakFactoryMap.get(WeakFactoryMap.java:40)
at com.intellij.mock.MockFileDocumentManagerImpl.getDocument(MockFileDocumentManagerImpl.java:63)
at com.intellij.psi.SingleRootFileViewProvider.getDocument(SingleRootFileViewProvider.java:367)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:197)
at com.intellij.psi.impl.source.PsiFileImpl.getTreeElement(PsiFileImpl.java:126)
at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:774)
at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:798)
at org.kevoree.modeling.util.StandaloneParser.check(StandaloneParser.java:508)
at org.kevoree.modeling.util.StandaloneParser.convert2ecore(StandaloneParser.java:211)
at org.kevoree.modeling.kotlin.generator.Generator.(Generator.java:84)
at org.kevoree.modeling.kotlin.generator.RootGenerator.execute(RootGenerator.java:129)
at org.kevoree.modeling.kotlin.generator.mavenplugin.GenModelPlugin.execute(GenModelPlugin.java:179)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.Throwable
... 49 more
It will be interesting to display the results and the progress of the genetic optimization each N generations. It will be more interesting if the user can specify the display function, i.e: what to display and how to display the results (console printout, save to file, etc.)
After cloning the old solutions, the parameters for mutation are still pointing to the old solution objects instead of the cloned solution. This should be corrected in the full search and greedy search, mutate functions.
It will be interesting to take into account // computational power. For ex. when evaluating a population, each individual can be calculated in a different thread, or for multi-group optimization, each group is run in a different process.
Exception in thread "main" jet.runtime.Intrinsics$JetNullPointerException
at org.kevoree.modeling.optimization.engine.fullsearch.FullSearchEngine.computeStep(FullSearchEngine.kt:134)
at org.kevoree.modeling.optimization.engine.fullsearch.FullSearchEngine.solve(FullSearchEngine.kt:209)
at org.kevoree.modeling.genetic.genetictest.SampleRunner.main(SampleRunner.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
The pointed line is : " val newStep = _executionModelFactory!!.createStep() "
Add constrains API to MOEA framework that can leverage model checking functions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.