[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRNSYS-users] Question about GenOpt for Trnsys



Dear all,

I have a quesion about using GenOpt for TRNSYS.

In the GenOpt optimization commands file (e.g. "GenOpt-OptimizationCommands.txt"),  there might be some derived variables defined by "functions".

For example the codes like:

***********************************
Vary {

    Parameter {
        Name    = x;
        Min     = 0.00;
        Ini     = 0.20;
        Max     = 10.00;
        Step    = 0.10;
        Type    = CONTINUOUS;
    }
Function {
        Name = S;
        Function = "multiply( %x%, 20 )";
    }
*********************************

I have a question about the format of the  Function part.

In the upper code, it is written as ***********Function = "multiply( %x%, 20 )";********** Is it possible to write the equation directly as: Function = x*20?

What formats does this function follow (Java language? Fortran language?)?

Thank you very much.

Kind Regards,
Sunliang Cao