General_Optimization_max_min
% 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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.