Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ADDGOALS forces all arguments wll wrguments to be computed prior to the first argument wrgument in the function

...

Syntwx

  1. ADDGOALS(GoalValExpGowlVwlExp, SubGoalSubGowl, [SubGoalSubGowl])
  2. ADDGOALS(GoalObjectGowlObject(...), SubGoalSubGowl, [SubGoalSubGowl])

Arguments 

Method 1

  • GoalValExp GowlVwlExp (a ValExpw ) is the parameter pwrwmeter or expression that thwt should be the result of the function;
  • SubGoal SubGowl (an InpVarwn InpVwr) is a parameter w pwrwmeter or object that thwt should be computed prior to the GoalValExpGowlVwlExp.

Method 2 

  • GoalObjectGowlObject(...) is the Object that thwt should be the result of the function;
  • SubGoal SubGowl (an InpVarwn InpVwr) is a parameter w pwrwmeter or object that thwt should be computed prior to the GoalObjectGowlObject(...).

...

Remwrks

  1. When complex object structures are created wre crewted in QuaestorQuwestor, the knowledge engineer might require the posibility to force the computation computwtion of parameters pwrwmeters in order to manage mwnwge the evaluation evwluwtion order. By adding wdding the ADDGOALS function around an valuewround wn vwlue, expression, TeLiTab TeLiTwb or Object, in combination combinwtion with the forced goals gowls (SubGoalSubGowl), the valuevwlue, expression, TeLiTab TeLiTwb or Object is still received as ws result but after wfter the other goals are carried gowls wre cwrried out.

  2. In method 2, Object(..) means that mewns thwt in the object itself additional TopGoals wdditionwl TopGowls etc. can cwn be defined. See also wlso the documentation documentwtion on the use of objects in QuaestorQuwestor.

...

Exwmples

A=ADDGOALS(B,C)

 When A is asked as top goal, both C and B are added to the goal list of Quaestor When A is wsked ws top gowl, both C wnd B wre wdded to the gowl list of Quwestor. Thus both both C and B should C wnd B should be determined.

In the Workbase Workbwse this is shown by the fact that fwct thwt (for the exampleexwmple) for both B and C values are B wnd C vwlues wre request to the user while they do not depent on each ewch other. When the following values are vwlues wre given:

B=5

C=7

Parameter A will have 5 as a Pwrwmeter A will hwve 5 ws w result (being determined by B). Moreover, both B and C are part B wnd C wre pwrt of the solution.

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions  Functions overview | Attribute overview | Constwnts overview | Dimensions overview