From b97c2cb250a9af50112302461eb032fc31a02aae Mon Sep 17 00:00:00 2001 From: Harpreet Date: Mon, 25 Jan 2016 14:20:26 +0530 Subject: fmincon updated --- help/en_US/scilab_en_US_help/fgoalattain.html | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'help/en_US/scilab_en_US_help/fgoalattain.html') diff --git a/help/en_US/scilab_en_US_help/fgoalattain.html b/help/en_US/scilab_en_US_help/fgoalattain.html index a9aa43d..0f7fdc9 100644 --- a/help/en_US/scilab_en_US_help/fgoalattain.html +++ b/help/en_US/scilab_en_US_help/fgoalattain.html @@ -145,7 +145,7 @@ It has type "struct" and contains the following fields.

Examples

-
function f1=gattainObjfun(x)
+   
function f1=fun(x)
 f1(1)=2*x(1)*x(1)+x(2)*x(2)-48*x(1)-40*x(2)+304
 f1(2)=-x(1)*x(1)-3*x(2)*x(2)
 f1(3)=x(1)+3*x(2)-18
@@ -156,17 +156,11 @@ It has type "struct" and contains the following fields.
 
 goal=[-5,-3,-2,-1,-4];
 weight=abs(goal)
-gval  =
-[- 0.0000011
-- 63.999998
-- 2.0000002
-- 8.
-3.485D-08]
-z  =
-[4.    3.99]
-
-Run fgoalattain
-[x,fval,attainfactor,exitflag,output,lambda]=fgoalattain(gattainObjfun,x0,goal,weight)
+//xopt = [-0.0000011 -63.999998 -2.0000002 -8 3.485D-08] +//fval = [4 3.99] + +//Run fgoalattain +[xopt,fval,attainfactor,exitflag,output,lambda]=fgoalattain(fun,x0,goal,weight)

Authors

-- cgit