Skip to content

ConstantEffectiveness #8

Description

@dhblum

Use of IBPSA.Fluid.HeatExchangers.ConstantEffectiveness in JModelica optimization results in the following error:

Java error occurred: 
Exception in thread "main" java.lang.UnsupportedOperationException: If-Statements are unsupported (try to rewrite into if-expressions): if x < 0 then
 y := - y;
end if
	at org.jmodelica.optimica.compiler.FIfStmt.updateExpressionsAccordingToStatement(Unknown Source)
	at org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(Unknown Source)
	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(Unknown Source)
	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(Unknown Source)
	at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(Unknown Source)
	at org.jmodelica.optimica.compiler.FFunctionCall.toMX(Unknown Source)
	at org.jmodelica.optimica.compiler.FIfExp.toMX(Unknown Source)
	at org.jmodelica.optimica.compiler.FIfExp.toMX(Unknown Source)
	at org.jmodelica.optimica.compiler.FNoEventExp.toMX(Unknown Source)
	at org.jmodelica.optimica.compiler.FEquation.toMXForRhs(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions