Skip to content

Commit

Permalink
Added missing options to potOptModules ...
Browse files Browse the repository at this point in the history
and initOptModules
  • Loading branch information
lochel committed Sep 16, 2015
1 parent bf8a3b9 commit a23d238
Showing 1 changed file with 44 additions and 27 deletions.
71 changes: 44 additions & 27 deletions Compiler/Util/Flags.mo
Expand Up @@ -799,40 +799,51 @@ constant ConfigFlag POST_OPT_MODULES = CONFIG_FLAG(16, "postOptModules",
//"addInitialStmtsToAlgorithms",
}),
SOME(STRING_DESC_OPTION({
("removeInitializationStuff", Util.gettext("Does simplifications by removing initialization information like homotopy(..) and initial().")),
("lateInlineFunction", Util.gettext("Perform function inlining for function with annotation LateInline=true.")),
("removeSimpleEquations", removeSimpleEquationDesc),
("evaluateFinalParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("addInitialStmtsToAlgorithms", Util.gettext("Expands all algorithms with initial statements for outputs.")),
("addScaledVars", Util.notrans("DESCRIBE ME")),
("addTimeAsState", Util.gettext("Experimental feature: this replaces each occurrence of variable time with a new introduced state $time with equation der($time) = 1.0")),
("calculateStateSetsJacobians", Util.gettext("Generates analytical Jacobian for dynamic state selection sets.")),
("calculateStrongComponentJacobians", Util.gettext("Generates analytical Jacobian for non-linear strong components.")),
("constantLinearSystem", Util.gettext("Evaluates constant linear systems (a*x+b*y=c; d*x+e*y=f; a,b,c,d,e,f are constants) at compile-time.")),
("countOperations", Util.gettext("Count the mathematical operations of the system.")),
("CSE", Util.gettext("Common Sub-expression Elimination")),
("detectJacobianSparsePattern", Util.gettext("Detects the sparse pattern for Jacobian A.")),
("dumpComponentsGraphStr", Util.notrans("DESCRIBE ME")),
("dumpDAE", Util.gettext("dumps the DAE representation of the current transformation state")),
("dumpDAEXML", Util.gettext("dumps the DAE as xml representation of the current transformation state")),
("evaluateEvaluateParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateFinalEvaluateParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateReplaceFinalParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateFinalParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateReplaceEvaluateParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateReplaceFinalEvaluateParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("removeEqualFunctionCalls", Util.notrans("DESCRIBE ME")),
("inlineArrayEqn", Util.gettext("This module expands all array equations to scalar equations.")),
("removeUnusedParameter", Util.gettext("Strips all parameter not present in the equations from the system.")),
("evaluateReplaceFinalParameters", Util.gettext("Structural parameters and parameters declared as final are removed and replaced with their value. They may no longer be changed in the init file.")),
("evaluateReplaceProtectedFinalEvaluateParameters", Util.notrans("DESCRIBE ME")),
("extendDynamicOptimization", Util.gettext("Move loops to constraints.")),
("constantLinearSystem", Util.gettext("Evaluates constant linear systems (a*x+b*y=c; d*x+e*y=f; a,b,c,d,e,f are constants) at compile-time.")),
("tearingSystem",Util.notrans("For method selection use flag tearingMethod.")),
("partlintornsystem",Util.notrans("partitions linear torn systems.")),
("relaxSystem",Util.notrans("DESCRIBE ME")),
("countOperations", Util.gettext("Count the mathematical operations of the system.")),
("dumpComponentsGraphStr", Util.notrans("DESCRIBE ME")),
("generateSymbolicJacobian", Util.gettext("Generates symbolic Jacobian matrix, where der(x) is differentiated w.r.t. x. This matrix can be used to simulate with dasslColorSymJac.")),
("generateSymbolicLinearization", Util.gettext("Generates symbolic linearization matrices A,B,C,D for linear model:\n\t\t:math:`\\dot{x} = Ax + Bu`\n\t:math:`ty = Cx +Du`")),
("simplifyTimeIndepFuncCalls", Util.gettext("Simplifies time independent built in function calls like pre(param) -> param, der(param) -> 0.0, change(param) -> false, edge(param) -> false.")),
("inlineArrayEqn", Util.gettext("This module expands all array equations to scalar equations.")),
("inputDerivativesUsed", Util.gettext("Checks if derivatives of inputs are need to calculate the model.")),
("simplifysemiLinear", Util.gettext("Simplifies calls to semiLinear.")),
("lateInlineFunction", Util.gettext("Perform function inlining for function with annotation LateInline=true.")),
("partlintornsystem",Util.notrans("partitions linear torn systems.")),
("recursiveTearing", Util.notrans("DESCRIBE ME")),
("reduceDynamicOptimization", Util.notrans("DESCRIBE ME")),
("relaxSystem", Util.notrans("DESCRIBE ME")),
("removeConstants", Util.gettext("Remove all constants in the system.")),
("detectJacobianSparsePattern", Util.gettext("Detects the sparse pattern for Jacobian A.")),
("calculateStrongComponentJacobians", Util.gettext("Generates analytical Jacobian for non-linear strong components.")),
("calculateStateSetsJacobians", Util.gettext("Generates analytical Jacobian for dynamic state selection sets.")),
("addInitialStmtsToAlgorithms", Util.gettext("Expands all algorithms with initial statements for outputs.")),
("removeEqualFunctionCalls", Util.notrans("DESCRIBE ME")),
("removeInitializationStuff", Util.gettext("Does simplifications by removing initialization information like homotopy(..) and initial().")),
("removeSimpleEquations", removeSimpleEquationDesc),
("removeUnusedParameter", Util.gettext("Strips all parameter not present in the equations from the system.")),
("removeUnusedVariables", Util.notrans("DESCRIBE ME")),
("reshufflePost", Util.gettext("Reshuffles algebraic loops.")),
("CSE", Util.gettext("Common Sub-expression Elimination")),
("dumpDAE", Util.gettext("dumps the DAE representation of the current transformation state")),
("dumpDAEXML", Util.gettext("dumps the DAE as xml representation of the current transformation state")),
("addTimeAsState", Util.gettext("Experimental feature: this replaces each occurrence of variable time with a new introduced state $time with equation der($time) = 1.0"))
("simplifyComplexFunction", Util.notrans("DESCRIBE ME")),
("simplifyConstraints", Util.notrans("DESCRIBE ME")),
("simplifyLoops", Util.notrans("DESCRIBE ME")),
("simplifyTimeIndepFuncCalls", Util.gettext("Simplifies time independent built in function calls like pre(param) -> param, der(param) -> 0.0, change(param) -> false, edge(param) -> false.")),
("simplifysemiLinear", Util.gettext("Simplifies calls to semiLinear.")),
("solveLinearSystem", Util.notrans("DESCRIBE ME")),
("solveSimpleEquations", Util.notrans("DESCRIBE ME")),
("symEuler", Util.notrans("DESCRIBE ME")),
("tearingSystem", Util.notrans("For method selection use flag tearingMethod."))
})),
Util.gettext("Sets the post optimization modules to use in the back end. See --help=optmodules for more info."));

Expand Down Expand Up @@ -1148,11 +1159,17 @@ constant ConfigFlag INIT_OPT_MODULES = CONFIG_FLAG(78, "initOptModules",
//"extendDynamicOptimization"
}),
SOME(STRING_DESC_OPTION({
("extendDynamicOptimization", Util.gettext("Move loops to constraints.")),
("calculateStrongComponentJacobians", Util.gettext("Generates analytical Jacobian for non-linear strong components.")),
("constantLinearSystem", Util.gettext("Evaluates constant linear systems (a*x+b*y=c; d*x+e*y=f; a,b,c,d,e,f are constants) at compile-time.")),
("tearingSystem",Util.notrans("For method selection use flag tearingMethod.")),
("extendDynamicOptimization", Util.gettext("Move loops to constraints.")),
("inputDerivativesUsed", Util.gettext("Checks if derivatives of inputs are need to calculate the model.")),
("calculateStrongComponentJacobians", Util.gettext("Generates analytical Jacobian for non-linear strong components."))
("recursiveTearing", Util.notrans("DESCRIBE ME")),
("reduceDynamicOptimization", Util.notrans("DESCRIBE ME")),
("simplifyComplexFunction", Util.notrans("DESCRIBE ME")),
("simplifyConstraints", Util.notrans("DESCRIBE ME")),
("simplifyLoops", Util.notrans("DESCRIBE ME")),
("solveSimpleEquations", Util.notrans("DESCRIBE ME")),
("tearingSystem", Util.notrans("For method selection use flag tearingMethod."))
})),
Util.gettext("Sets the initialization optimization modules to use in the back end. See --help=optmodules for more info."));

Expand Down

0 comments on commit a23d238

Please sign in to comment.