From 6e9ee19cd67b0b85b7708efa4847c7ebb6d79f24 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Tue, 22 Dec 2015 15:54:28 +0530 Subject: Bugs fixed 3 --- demos/qpipoptmat.dem.sce | 2 +- demos/symphony.dem.sce | 2 +- demos/symphonymat.dem.sce | 10 ++--- help/en_US/lsqlin.xml | 22 ++++----- help/en_US/qpipopt.xml | 18 ++++---- help/en_US/qpipoptmat.xml | 22 ++++----- help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS | Bin 7496 -> 7491 bytes .../scilab_en_US_help/JavaHelpSearch/DOCS.TAB | Bin 868 -> 867 bytes .../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | Bin 270 -> 270 bytes .../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 36157 -> 36132 bytes help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP | Bin 16384 -> 16384 bytes .../scilab_en_US_help/_LaTeX_symphonymat.xml_1.png | Bin 3160 -> 3187 bytes help/en_US/scilab_en_US_help/lsqlin.html | 22 ++++----- help/en_US/scilab_en_US_help/qpipopt.html | 18 ++++---- help/en_US/scilab_en_US_help/qpipoptmat.html | 22 ++++----- help/en_US/scilab_en_US_help/symphony.html | 16 +++---- help/en_US/scilab_en_US_help/symphonymat.html | 34 +++++++------- help/en_US/symphony.xml | 16 +++---- help/en_US/symphonymat.xml | 36 +++++++-------- jar/scilab_en_US_help.jar | Bin 215062 -> 215075 bytes macros/lsqlin.bin | Bin 52068 -> 52024 bytes macros/lsqlin.sci | 22 ++++----- macros/qpipopt.bin | Bin 49652 -> 49616 bytes macros/qpipopt.sci | 18 ++++---- macros/qpipoptmat.bin | Bin 51408 -> 51240 bytes macros/qpipoptmat.sci | 50 ++++++++++----------- macros/symphony.bin | Bin 54824 -> 54820 bytes macros/symphony.sci | 16 +++---- macros/symphonymat.bin | Bin 60900 -> 60724 bytes macros/symphonymat.sci | 36 +++++++-------- 30 files changed, 191 insertions(+), 191 deletions(-) diff --git a/demos/qpipoptmat.dem.sce b/demos/qpipoptmat.dem.sce index bbaa42c..0892855 100644 --- a/demos/qpipoptmat.dem.sce +++ b/demos/qpipoptmat.dem.sce @@ -32,7 +32,7 @@ lb=[-1000; -10000; 0; -1000; -1000; -1000]; ub=[10000; 100; 1.5; 100; 100; 1000]; x0 = repmat(0,6,1); param = list("MaxIter", 300, "CpuTime", 100); -//and minimize 0.5*x'*Q*x + p'*x with +//and minimize 0.5*x'*H*x + f'*x with f=[1; 2; 3; 4; 5; 6]; H=eye(6,6); [xopt,fopt,exitflag,output,lambda]=qpipoptmat(H,f,A,b,Aeq,beq,lb,ub,[],param) //========= E N D === O F === D E M O =========// diff --git a/demos/symphony.dem.sce b/demos/symphony.dem.sce index 0449b3a..9dcf6d7 100644 --- a/demos/symphony.dem.sce +++ b/demos/symphony.dem.sce @@ -5,7 +5,7 @@ mode(1) //A basic case : // Objective function -c = [350*5,330*3,310*4,280*6,500,450,400,100]'; +objCoef = [350*5,330*3,310*4,280*6,500,450,400,100]'; // Lower Bound of variable lb = repmat(0,8,1); // Upper Bound of variables diff --git a/demos/symphonymat.dem.sce b/demos/symphonymat.dem.sce index 9467e78..bc0f67a 100644 --- a/demos/symphonymat.dem.sce +++ b/demos/symphonymat.dem.sce @@ -4,7 +4,7 @@ mode(1) // // Objective function -c = [350*5,330*3,310*4,280*6,500,450,400,100]'; +C = [350*5,330*3,310*4,280*6,500,450,400,100]'; // Lower Bound of variable lb = repmat(0,1,8); // Upper Bound of variables @@ -30,7 +30,7 @@ halt() // Press return to continue // st sum{j=1,...,n} r(i,j)x(j) <= b(i) i=1,...,m // x(j)=0 or 1 // The function to be maximize i.e. P(j) -objCoef = -1*[ 504 803 667 1103 834 585 811 856 690 832 846 813 868 793 .. +C = -1*[ 504 803 667 1103 834 585 811 856 690 832 846 813 868 793 .. 825 1002 860 615 540 797 616 660 707 866 647 746 1006 608 .. 877 900 573 788 484 853 942 630 591 630 640 1169 932 1034 .. 957 798 669 625 467 1051 552 717 654 388 559 555 1104 783 .. @@ -38,7 +38,7 @@ objCoef = -1*[ 504 803 667 1103 834 585 811 856 690 832 846 813 868 793 .. 510 671 575 740 510 675 996 636 826 1022 1140 654 909 799 .. 1162 653 814 625 599 476 767 954 906 904 649 873 565 853 1008 632]'; //Constraint Matrix -conMatrix = [ //Constraint 1 +A = [ //Constraint 1 42 41 523 215 819 551 69 193 582 375 367 478 162 898 .. 550 553 298 577 493 183 260 224 852 394 958 282 402 604 .. 164 308 218 61 273 772 191 117 276 877 415 873 902 465 .. @@ -80,7 +80,7 @@ conMatrix = [ //Constraint 1 893 160 785 311 417 748 375 362 617 553 474 915 457 261 350 635 ; ]; nbVar = size(objCoef,1) -conUB=[11927 13727 11551 13056 13460 ]; +b=[11927 13727 11551 13056 13460 ]; // Lower Bound of variables lb = repmat(0,1,nbVar) // Upper Bound of variables @@ -99,5 +99,5 @@ xopt = [0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 .. // Optimal value fopt = [ 24381 ] // Calling Symphony -[x,f,status,output] = symphonymat(objCoef,intcon,conMatrix,conUB,[],[],lb,ub,options); +[x,f,status,output] = symphonymat(C,intcon,A,b,[],[],lb,ub,options); //========= E N D === O F === D E M O =========// diff --git a/help/en_US/lsqlin.xml b/help/en_US/lsqlin.xml index 1936e11..73416a9 100644 --- a/help/en_US/lsqlin.xml +++ b/help/en_US/lsqlin.xml @@ -38,31 +38,31 @@
a matrix of doubles, represents the multiplier of the solution x in the expression C*x - d. C is M-by-N, where M is the number of equations, and N is the number of elements of x.
a matrix of double, represents the multiplier of the solution x in the expression C*x - d. C is M-by-N, where M is the number of equations, and N is the number of elements of x.
a vector of doubles, represents the additive constant term in the expression C*x - d. d is M-by-1, where M is the number of equations.
a vector of double, represents the additive constant term in the expression C*x - d. d is M-by-1, where M is the number of equations.
a vector of doubles, represents the linear coefficients in the inequality constraints
a vector of double, represents the linear coefficients in the inequality constraints
a vector of doubles, represents the linear coefficients in the inequality constraints
a vector of double, represents the linear coefficients in the inequality constraints
a matrix of doubles, represents the linear coefficients in the equality constraints
a matrix of double, represents the linear coefficients in the equality constraints
a vector of doubles, represents the linear coefficients in the equality constraints
a vector of double, represents the linear coefficients in the equality constraints
a vector of doubles, contains lower bounds of the variables.
a vector of double, contains lower bounds of the variables.
a vector of doubles, contains upper bounds of the variables.
a vector of double, contains upper bounds of the variables.
a vector of doubles, contains initial guess of variables.
a vector of double, contains initial guess of variables.
a list containing the the parameters to be set.
a vector of doubles, the computed solution of the optimization problem.
a vector of double, the computed solution of the optimization problem.
a double, objective value returned as the scalar value norm(C*x-d)^2.
a vector of doubles, solution residuals returned as the vector C*x-d.
a vector of double, solution residuals returned as the vector C*x-d.
Integer identifying the reason the algorithm terminated.
a double, number of constraints
a symmetric matrix of doubles, represents coefficients of quadratic in the quadratic problem.
a symmetric matrix of double, represents coefficients of quadratic in the quadratic problem.
a vector of doubles, represents coefficients of linear in the quadratic problem
a vector of double, represents coefficients of linear in the quadratic problem
a vector of doubles, contains lower bounds of the variables.
a vector of double, contains lower bounds of the variables.
a vector of doubles, contains upper bounds of the variables.
a vector of double, contains upper bounds of the variables.
a matrix of doubles, contains matrix representing the constraint matrix
a matrix of double, contains matrix representing the constraint matrix
a vector of doubles, contains lower bounds of the constraints.
a vector of double, contains lower bounds of the constraints.
a vector of doubles, contains upper bounds of the constraints.
a vector of double, contains upper bounds of the constraints.
a vector of doubles, contains initial guess of variables.
a vector of double, contains initial guess of variables.
a list containing the the parameters to be set.
a vector of doubles, the computed solution of the optimization problem.
a vector of double, the computed solution of the optimization problem.
a double, the function value at x.
a symmetric matrix of doubles, represents coefficients of quadratic in the quadratic problem.
a symmetric matrix of double, represents coefficients of quadratic in the quadratic problem.
a vector of doubles, represents coefficients of linear in the quadratic problem
a vector of double, represents coefficients of linear in the quadratic problem
a vector of doubles, represents the linear coefficients in the inequality constraints
a vector of double, represents the linear coefficients in the inequality constraints
a vector of doubles, represents the linear coefficients in the inequality constraints
a vector of double, represents the linear coefficients in the inequality constraints
a matrix of doubles, represents the linear coefficients in the equality constraints
a matrix of double, represents the linear coefficients in the equality constraints
a vector of doubles, represents the linear coefficients in the equality constraints
a vector of double, represents the linear coefficients in the equality constraints
a vector of doubles, contains lower bounds of the variables.
a vector of double, contains lower bounds of the variables.
a vector of doubles, contains upper bounds of the variables.
a vector of double, contains upper bounds of the variables.
a vector of doubles, contains initial guess of variables.
a vector of double, contains initial guess of variables.
a list containing the the parameters to be set.
a vector of doubles, the computed solution of the optimization problem.
a vector of double, the computed solution of the optimization problem.
a double, the function value at x.
a double, number of constraints.
a vector of doubles, represents coefficients of the variables in the objective.
a vector of double, represents coefficients of the variables in the objective.
a vector of boolean, represents wether a variable is constrained to be an integer.
a vector of doubles, represents lower bounds of the variables.
a vector of double, represents lower bounds of the variables.
a vector of doubles, represents upper bounds of the variables.
a vector of double, represents upper bounds of the variables.
a matrix of doubles, represents matrix representing the constraint matrix.
a matrix of double, represents matrix representing the constraint matrix.
a vector of doubles, represents lower bounds of the constraints.
a vector of double, represents lower bounds of the constraints.
a vector of doubles, represents upper bounds of the constraints
a vector of double, represents upper bounds of the constraints
The sense (maximization/minimization) of the objective. Use 1(sym_minimize ) or -1 (sym_maximize) here.
a a list containing the the parameters to be set.
a vector of doubles, the computed solution of the optimization problem.
a vector of double, the computed solution of the optimization problem.
a double, the function value at x.
//A basic case : // Objective function -c = [350*5,330*3,310*4,280*6,500,450,400,100]'; +objCoef = [350*5,330*3,310*4,280*6,500,450,400,100]'; // Lower Bound of variable lb = repmat(0,8,1); // Upper Bound of variables diff --git a/help/en_US/scilab_en_US_help/symphonymat.html b/help/en_US/scilab_en_US_help/symphonymat.html index 611010b..c580508 100644 --- a/help/en_US/scilab_en_US_help/symphonymat.html +++ b/help/en_US/scilab_en_US_help/symphonymat.html @@ -37,35 +37,35 @@ | ![]() | ![]() |