The operational and decision-making problems of MATLAB
Linear programming problems
Function:
Linprog (F,a,b,aep,bep,lb,ub)
Parametric analysis:
F: The coefficient arrangement of the objective function
A: The coefficient matrix of the constraint condition
B: Result of the augmented matrix of the constraint condition
AEP: The coefficient matrix of the equation
BEP: The result matrix of the equation
LB: The minimum value to be solved
UB: The maximum value solved
Nonlinear programming problems (two times)
Function
Quadprog (F,a,b,aep,bep,lb,ub)
Nonlinear programming problems (universality)
Function
X=fmincon (' fun ', X0,a,b,aeq,beq,vlb,vub, ' Nonlcon ', options)
Parameter description
X: Output Extreme Point
Fun:m file
X0: The initial value of the iteration should be defined.
VLB,VUB: Variable upper and lower bounds
Options: Parameter description
Note: The value given by this function may be a local optimal
c) Instructions for use * * * *
1. Create M file fun.m, define objective function f (x)
2, if the constraints have a nonlinear constraint that is g (x) <0 or Ceq (x) =0
Create M file nonlcon.m define function g (x), Ceq (x)
Template:
Function [G,ceq]=nonlcon (x)
G= ...
Ceq= ...
Matlab: Linear and nonlinear programming