xprsmiqp
Purpose
Synopsis
x = xprsmiqp(H,f,A,b,rtype,ctype, clim,sos,lb,ub,x0,options)
[x,fval,exitflag,output] = xprsmiqp(...)
Input arguments
|
H
|
Matrix for quadratic objective terms
|
||||||||||||||||||||||||||||||||||||||||
|
f
|
Linear objective function vector
|
||||||||||||||||||||||||||||||||||||||||
|
A
|
Matrix for linear constraints
|
||||||||||||||||||||||||||||||||||||||||
|
b
|
Vector for constraints RHS
|
||||||||||||||||||||||||||||||||||||||||
|
rtype
|
Character vector (string) giving the row types:
If
rtype = [], all rows are assumed to be of type
'L'. If
rtype is a single character, all constraints are assigned the corresponding type.
|
||||||||||||||||||||||||||||||||||||||||
|
ctype
|
Character vector (string) giving the column types:
If
ctype = [], all rows are assumed to be of type
'C'. If
ctype is a single character, all constraints are assigned the corresponding type.
|
||||||||||||||||||||||||||||||||||||||||
|
clim
|
Vector containing the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (column types
'P',
'S',
'R'). Values in the positions corresponding to all other columns are ignored.
clim is mandatory if there are any
'P',
'S', or
'R' columns. If
clim is a scalar, all columns are assigned to that same limit.
|
||||||||||||||||||||||||||||||||||||||||
|
mipstructs
|
Struct vector defining additional MIP constraints. The number of MIP structs is given by the number of elements in the struct. Each struct must have mipstructs(i).type, which defines the constraint type and the remainder of the struct:
|
||||||||||||||||||||||||||||||||||||||||
|
lb
|
Lower bounds. If
lb = [] it means there are no lower bounds. If
lb is a scalar,
x is uniformly bounded by that scalar.
|
||||||||||||||||||||||||||||||||||||||||
|
ub
|
Upper bounds. If
ub = [] it means there are no upper bounds. If
ub is a scalar,
x is uniformly bounded by that scalar.
|
||||||||||||||||||||||||||||||||||||||||
|
x0
|
Optional initial known solution used to speed-up search.
|
||||||||||||||||||||||||||||||||||||||||
|
options
|
Options structure created with
optimset or
xprsoptimset functions. See
xprsoptimset for more details.
|
Output arguments
|
x
|
Solution found by the optimization function. If
exitflag > 0, then
x is a solution; otherwise,
x is the value of the optimization routine when it terminated prematurely.
|
||||||||||||
|
fval
|
Value of the objective function at the solution
x.
|
||||||||||||
|
exitflag
|
Integer identifying the reason the optimization algorithm terminated. The following lists the values of exitflag and the corresponding reasons the algorithm terminated.
|
||||||||||||
|
output
|
Structure containing information about the optimization and, eventually, values of Xpress controls and attributes. See quadprog and the Section
Setting and querying controls and attributes for details.
|
Further information
1. This routine finds the minimum of a problem specified by
min 0,5·x'·H·x + f·x
s.t. A·x ≤|=|≥ b
lb≤ x ≤ ub
and
x in the domain specified by the
ctype,
clim and
sos arguments, where
H is an
n × n matrix;
A is an
m × n matrix;
f,
b,
rtype,
ctype,
clim,
lb,
ub, and
x0 are vectors;
sos is a struct vector.
s.t. A·x ≤|=|≥ b
lb≤ x ≤ ub
2. Input arguments
rtype and following can be omitted, with the condition that, if one is omitted, also all the following ones must be omitted (as in
x=xprsmiqp(H, f, A, b, rtype)). Omitting an input argument has the same effect as passing an empty array
[].
3. All output arguments can be omitted too, again with the condition that, if one is omitted, also all the following ones must be omitted (as in
[x, fval]= xprsmiqp(H, f, A, b, rtype)).
4. If the specified input bounds for a problem are inconsistent, the output
x and
fval are set to
[].
Related topics
© 2001-2023 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
