Opened 17 months ago

Last modified 11 months ago

#2553 new feature request

Provide access to script's compiled instance as dynamic object

Reported by: abeham Owned by:
Priority: medium Milestone: HeuristicLab 3.3.15
Component: Problems.ExternalEvaluation Version: 3.3.13
Keywords: Cc:


If the user adds additional methods to the class that she creates this would make those methods accessible from other operators. For example:

public dynamic Instance {
  get { return CompiledInstance; } // often CompiledInstance is a property that returns the compiled instance or compiles it if it hasn't been already

would then allow to write the following exemplary code in an operator

var myResult = (double)ScriptParameter.ActualValue.Instance.MyMethod(5, false);

I would do this in general for all scripts, but at least for the OptimizationSupportScript in the external evaluation plugin.

Feature request:!topic/heuristiclab/DlxjktBsgrA

Change History (1)

comment:1 Changed 11 months ago by mkommend

  • Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.15
Note: See TracTickets for help on using tickets.