Matlab: Linear and nonlinear programming

Source: Internet
Author: User
Tags define function

The operational and decision-making problems of MATLAB

    1. Linear programming problems

      1. Function:

        Linprog (F,a,b,aep,bep,lb,ub)

      2. 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

    2. Nonlinear programming problems (two times)

      1. Function

        Quadprog (F,a,b,aep,bep,lb,ub)

    1. Nonlinear programming problems (universality)

      1. Function

        X=fmincon (' fun ', X0,a,b,aeq,beq,vlb,vub, ' Nonlcon ', options)

      2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.