General_Optimizatio​n_max_min

this program for general optimization even if maximization or minimization for any linear function
179 Downloads
Updated 12 May 2014

View License

% This program for //////general optimization///////
%////////////minimization of maximization//////////////
%////////////////////////////////////////////////
% for example maximize this function
%/////////////
% function(f)=[6, 4, 7, 5] ===> it's mean f=6X1+4X2+7X3+5X4
% and we have three constraints and the X's >=0 constraint
% the first constraint = [1 2 1 2] =< b=[20]
% the first constraint = [6 5 3 2] =< b=[100]
% the first constraint = [3 4 9 12] =< b=[75]
% the solution that you will have after maximization that
% X1=15 , X2=0 , X3=3.33 , X4=0
%///////////////////////////////////////////

Cite As

mohamed arous (2024). General_Optimization_max_min (https://www.mathworks.com/matlabcentral/fileexchange/46572-general_optimization_max_min), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Get Started with Optimization Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

the previous version was have small error but now it will be okey

1.0.0.0