
fgoalattain: 3 GoalsExact to Achieve and 1 function to minimize
Posted:
Dec 25, 2012 12:17 PM


I have a function with 4 output. The output from 1 to 3 have to be exactly equal to several values (that I defined in a 'goal' vector). Therefore I called odeset and I imposed: 'GoalsExactAchieve',3
The last function, the 4th one, has to be minimized.There is not any special goal. It has simply to return the littlest possible value, taking into account the goals of the other functions (i.e. 1st, 2nd, 3rd output of my function).
Nevertheless the fgoalattain requires the goal vector has the same dimension of the output function. In my case, which value shall I set as 4th goal? Furthermore, I imposed weight = abs(goal). It seems this is the general setting. Is it correct also in this circumstance?
Best Regards

