LINPROG error only accepts inputs of data type double, however all inputs are doubles, what is going on?

1 view (last 30 days)
When using the function LINPROG in both the optimization toolbox as well as on the command screen I get the following error.
" Optimization running. Error running optimization. LINPROG only accepts inputs of data type double ."
The problem is all of my inputs are doubles! I don't understand what the issue is. In the workspace all of my inputs (equality and inequality constraints and lower bound: A, b, Aeq, beq, and lb) are listed as doubles, for example Name: Aeq, Value: 216x216 double . I have also used class() to check the variable type and they are all stated to be doubles. A and Aeq are [216x216] matrices, b and beq and lb are [216x1] column vectors.
Help would be very much appreciated!! Thank you in advance.

Answers (1)

Matt J
Matt J on 24 Jan 2014
Edited: Matt J on 24 Jan 2014
You haven't mentioned your objective function weights, f (the first input argument). Is that also a double vector? It should be.

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!