Menu

#39 no provider for NSGAII

2.1
open
nobody
1 (1)
5
2015-08-06
2015-08-05
ahmad
No

I am trying to use MOEA framework with anylogic program (i.e. anylogic is a program written in java) but I am having the following error any idea on how to solve this? please let me know if you need more information thanks in advance

Exception during numeric calculations (formulas):
no provider for NSGAII
Caused by: no provider for unknown type
org.moeaframework.core.spi.ProviderNotFoundException: no provider for NSGAII
at org.moeaframework.algorithm.StandardAlgorithms.getAlgorithm(StandardAlgorithms.java:146)
at org.moeaframework.core.spi.AlgorithmFactory.instantiateAlgorithm(AlgorithmFactory.java:135)
at org.moeaframework.core.spi.AlgorithmFactory.getAlgorithm(AlgorithmFactory.java:111)
at org.moeaframework.Executor.runSingleSeed(Executor.java:671)
at org.moeaframework.Executor.run(Executor.java:629)
at system_of_system_model.Main.selectswgefee(Main.java:3211)
at system_of_system_model.Main._assign_reqSwgeFee_Formula_xjal(Main.java:1457)
at system_of_system_model.Main.formulasExecute_xjal(Main.java:1650)
at com.anylogic.engine.Engine.n(Unknown Source)
at com.anylogic.engine.Engine.u(Unknown Source)
at com.anylogic.engine.Engine.i(Unknown Source)
at com.anylogic.engine.Engine$i.run(Unknown Source)
Caused by: org.moeaframework.core.spi.ProviderNotFoundException: no provider for unknown type
at org.moeaframework.core.spi.OperatorFactory.getDefaultVariation(OperatorFactory.java:302)
at org.moeaframework.core.spi.OperatorFactory.getVariation(OperatorFactory.java:341)
at org.moeaframework.algorithm.StandardAlgorithms.newNSGAII(StandardAlgorithms.java:227)
at org.moeaframework.algorithm.StandardAlgorithms.getAlgorithm(StandardAlgorithms.java:130)
... 11 more

Discussion

  • Anonymous

    Anonymous - 2015-08-06

    It looks like the error is resulting from the MOEA Framework not recognizing your decision variable type. It by default only recognizes the types listed here: http://moeaframework.org/javadoc/org/moeaframework/core/variable/package-summary.html. If you have introduced a new type, then you'll need to modify OperatorFactory.java to include your new type. If you have not introduced a new type, please post your Problem definition and I can investigate more.

     
    • ahmad

      ahmad - 2015-08-06

      Thank you very much for your response I didn't define a new variable I have attached my problem definition.