COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Linear Programming problem

• Email
• Follow

```An oil fired power station burns three grades of oil: grade A, grade B and grade C.
The efficiency with which electricity can be produced from the burning of these oils
depends upon the presence of three ingredients: X, Y and Z which are known to be
present in each ton of the three grades as shown in the table below:
Tons of ingredient per ton of oil
X Y Z
Maximum efficiency in the burning process requires the presence of at least 200 tons
of ingredient X, at least 175 tons of ingredient Y, and at least 300 tons of ingredient
Z, in 1 hour of continuous electricity production.
The power station purchases the oil at prices of ?60, ?80, and ?70 per ton for grades
A, B and C respectively, and is required to operate for 12 hours per day.
Formulate the linear program which will minimize the total daily cost of
electricity production.

Can anyone help me with this one???

Thank you!
```
 0

See related articles to this posting

```"Petros Papadopoulos" <petrosp13@yahoo.gr> wrote in message
news:hfkpai\$nam\$1@fred.mathworks.com...
> The efficiency with which electricity can be produced from the burning of
> these oils
> depends upon the presence of three ingredients: X, Y and Z which are known
> to be
> present in each ton of the three grades as shown in the table below:
> Tons of ingredient per ton of oil
> X Y Z
> Grade A 0.2 0.4 0.3
> Grade B 0.1 0.3 0.2
> Grade C 0.3 0.2 0.4
> Maximum efficiency in the burning process requires the presence of at
> least 200 tons
> of ingredient X, at least 175 tons of ingredient Y, and at least 300 tons
> of ingredient
> Z, in 1 hour of continuous electricity production.
> The power station purchases the oil at prices of ?60, ?80, and ?70 per ton
> A, B and C respectively, and is required to operate for 12 hours per day.
> Formulate the linear program which will minimize the total daily cost of
> electricity production.
>
> Can anyone help me with this one???

example that's similar to what you described that will show you how to
transform the problem from text into matrices and vectors; once you have
those, just call LINPROG.

http://en.wikipedia.org/wiki/Linear_programming

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

```
 0

1 Replies
316 Views

Similar Articles

11/30/2013 3:55:55 AM
page loaded in 71321 ms. (0)

Similar Artilces:

Problem...
Hi all, I have a problem with my OGL application.... I realized a 3DLaser Sensor simulator: in a windows I put a point (glVertex)for every misure made by sensor... when I realize the 9434th misure and display the 9434th point I get an error: "A requested resource was not available". I think there is a limit in vertex number in OpenGL, is that True? Is there a way to jump over the problem? Any subjestion will be really appreciated Thank you in advance Walter Myzhar wrote: > Hi all, > I have a problem with my OGL application.... > I realized a 3DLaser Sensor simulator: in a windows I put a point > (glVertex)for every misure made by sensor... when I realize the 9434th > misure and display the 9434th point I get an error: "A requested resource > was not available". > > I think there is a limit in vertex number in OpenGL, is that True? Is there > a way to jump over the problem? No, there is no limit in the number of vertices that you can generate. There are limits on resources, but since I don't know if you are using display lists or vertex lists or neither, I don't know what resource you are running into. -- Andy V

Problem....
;Don't use passwords people can guess'. Thanks all for reply... Ive fixed problem...in legal way...;))) I used my login and pass on my collage ...when i closed explorer the cooke stayed there..so it was easy for who know who to send some abusive lines...it took me a few days too see all shit that someone was written.. cause i havent been on internet in that period .... aah...story is too long...and franky i dont even care anymore... aah damn...i cant even spell right...sorry for grammar errors.....im in a hurry...

IF problem?!
How is possible that My printout prints all value of \$sop, e.g. ----------------- My printout: ERI SOF HTM SOF ------------------ My Perl program: .... if (\$sup=="HTM") { print "\$sup\n"; } .... ------------------ <tihana@kata.com> wyrze�bi�(a): > if (\$sup=="HTM") { change == to eq. that's first. second - what about "new line characters"? depesz -- napisanie do mnie na priv daje 99.9% gwarancj� braku odpowiedzi *-----------------------------------------------------------------* sklep z rzeczami do domu:

problem!!!!
as 'Problem !!!!'. (Some of us won't even bother to read posts with these urgent, non-descriptive labels. But we WILL read posts with well-constructed subjects, if we feel that we can add anything useful. Cheers, Brett -- char(cumsum(... [32 83 -11 7 -10 7 7 -4 -1 -46 40 -3 7 -3 15 -74 64 -5 -1 -58 57 8 7]))

Problem with
calling generated SFunction, cupic_simulator_sfun. > > So it looks like I got a bit further, but now it just won't tell me what's wrong with the function. > > I tried a very simple simulation/model with a very simple embedded function -- same error. I have the same exact problem. Has anyone ever figured this out? The issue was that I needed the Windows Visual Studio 2008. It has the proper *things* to run embedded code in Simulink. Go get it! I only found out about this because a buddy of mine ran into the same problem when working on similar things. I would... have the same exact problem. Has anyone ever figured this out? "Matthew Lenda" <lendam@gmail.com> wrote in message <hqtdhh\$orc\$1@fred.mathworks.com>... > The issue was that I needed the Windows Visual Studio 2008. It has the proper *things* to run embedded code in Simulink. Go get it! > > I only found out about this because a buddy of mine ran into the same problem when working on similar things. I would have had no idea otherwise! Hi Matthew, I was wondering what you did to solve this. I'm having the same problem at the moment, but I've

problem
I send a UDP packet appears the following problem data access Exception current instruction address: 0x00494584 Machine Status Register: 0x0000b030 Data Access Register: 0x5a485a66 Condition Register: 0x44000040 Data storage interrupt Register: 0x40000000 Task: 0xf56c638 "VISW0:3" can you help me? alexbecks wrote: > I send a UDP packet appears the following problem > > data access > Exception current instruction address: 0x00494584 > Machine Status Register: 0x0000b030 > Data Access Register: 0x5a485a66 > Condition Register: 0x44000040 > Data storage interrupt Register: 0x40000000 > Task: 0xf56c638 "VISW0:3" > > > can you help me? Probably not, but my best guess is that you have mangled a pointer, or corrupted the stack. Speaking only for myself, Joe Durusau Joe Durusau <durusau_novirus@bellsouth.net> wrote in message news:<414C4648.9020506@bellsouth.net>... > alexbecks wrote: > > I send a UDP packet appears the following problem > > > > data access > > Exception current instruction address: 0x00494584 > > Machine Status Register: 0x0000b030 > > Data Access

problem with a minimazition problem.
Hello, I have a problem with a minimazition problem: Let my aim is to find x and a where f(x,a) is minimized with the constraint g(x,a)=0. Here "a" is parameter. It is known that for some values of x and a, function g does not have real roots of x. In matlab, I use fmincon function to solve this minimazition problem with "interior-point" algorithm. However, even in situations where g doesnt have real x roots , somehow Fmincon finds solution. I want to determine which solutions have real roots which are not. How can I do that? To which criterian do I have to look. I dont have optimization theory background. So if you help me, I will be very very glad. Thanks a lot. hagii <oercim@yahoo.com> wrote in message <c541e3ed-7416-4873-982b-23e93c4612fc@googlegroups.com>... > > However, even in situations where g doesnt have real x roots > , somehow Fmincon finds solution I don't believe it. That means, either 1) the setup of fmincon is not right, 2) you didn't not check carefully at the output flag of fmincon Bruno On Thursday, August 23, 2012 1:29:07 PM UTC+3, Bruno Luong wrote: > hagii <

mail problem?, DNS problem?
NWSTC.noaa.gov internet address = 195.56.32.3 SESTC.noaa.gov internet address = 196.112.123.245 MESTC.noaa.gov internet address = 197.94.173.133 MWSTC.noaa.gov internet address = 147.175.10.10 > exit Well it looks like there isn't a problem getting the mx records, at least with nslookup.. Is my client .cf file an optionor two short of a full deck? Or should I look else where for the problem.. Stuart Dr. Stuart A. Weinstein Ewa Beach Institute of Tectonics "To err is human, but to really foul things up requires a creationist" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

A simple problem, but a problem ...
Hello, can anyone solve the following problem ? It looks quite simple to me, but I can't get it right. The advice suggests the following: mr(yes). mr(no). mrs(yes). mrs(no). marcel(yes). marcel(no). jacqu(yes). jacqu(no). grandpa(yes). grandpa(no). but how can I use this to solve the problem ? thanx a lot Maxx Problem: If Mr. Johnson goes, his wife goes too. At least one of the children, Marcel or Jacqueline, goes too. If Marcel goes, grandpa goes too. If Mrs. Johnson goes, grandpa stays at home. If Jacqueline goes, Mr. Johnson and Marcel go too. Write a prolog program, which...: > "If Mr. Johnson goes, his wife goes too." > Can you give me a concret example for this line ?=20 Same problem here, Andr=E9. I have come this far, but I'm missing the=20 if_clause condition: % A family is about to visit their friends. They are a bit complicated=20 as to who % is going. The problematic part of the family consist of Mr. Funky,=20 Mrs. Funky, % the kids Marc and Joseline and grandpa Funky. The rules are as follows:= % % If Mrs. Funky goes, his wife goes as well. % At least one of the kids Marc and Joseline will be going. % If Marc goes, grandpa Funky

Purify problem or compiler problem?
= 0x100000 Stack Use : (0x7ef0db30 0x7ef0dd54), size = 0x224 Thread 6 Stack Limit : (0x7e612000 0x7e616000), size = 0x4000 Stack Use : (0x7e615b28 0x7e615d54), size = 0x22c Thread 8 Stack Limit : (0x7e632000 0x7e634000), size = 0x2000 Stack Use : (0x7e633b28 0x7e633d54), size = 0x22c This is with CC. With gcc or g++ it does not have this problem. cc has the problem too but with a larger number in the array. Is it the compiler/linker bug or it purify making things up? If it is the compiler I assume I am screwing up memory badly. Matt Hello Matthew! 06 Feb 04 12:29, Matthew wrote to All: M> I am using sun's CC (c++ compiler) to compile the follow code: M> #define __REENTRANT M> #include <stdio.h> M> #include <pthread.h> etc, etc You will be better off placing the details of this problem in one of the 'C++' usegroups. Vince

Is this a BIOS problem, a kernel problem or a user problem :-)
Hi all, I have a Dual Core P4, which dmesg reports as (CPU0 and) CPU1: Intel(R) Pentium(R) 5 CPU 2.66GHz stepping 07 Unfortunately, it is also reporting CPU: Hyper-Threading is disabled I went through the BIOS (AMI dated 2005) and saw no option to enable HT. uname -a reports Linux hwa3 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux so clearly the BIOS and the kernel see the processor as dual core. Is there a utility to do this (enable hyperthreading)? Am I going to have to recompile the kernel? Is there a set of Intel dual core CPU's which does not have H

Spam Problem
Hope someone can help me with this problem... When i first got OS X , i set Mail in training mode to help fight the spam problem... Now i'm getting spam, and i Mail isn't catching it... I tried training mode for almost a month, but still getting through... What can i do to re-train Mail to catch this spam?? TIA!! -- --- (remove x before emailing) "your worst day at the ballpark, is better then your best day at work!!" In article <060920051044103098%denny536x@mac.com>, dennis <denny536x@mac.com> wrote: > Hope someone can help me with this problem... > > When i first got OS X , i set Mail in training mode to help fight the > spam problem... > > Now i'm getting spam, and i Mail isn't catching it... > I tried training mode for almost a month, but still getting through... Did you actually click the "junk" button when you got a spam? It's not enough to turn on training, you actually have to train it. -- Tom "Tom" Harrington Macaroni, Automated System Maintenance for Mac OS X. Version 2.0: Delocalize, Repair Permissions, lots more. See http://www.atomicbird.com/ In article <

Problem with hla
. ---------------------- I apreciate any help. Thanks, Rafael Rafael Anschau <spamtrap@crayne.org> �crivait news:1186547257.800698.277270@d55g2000hsg.googlegroups.com: > I tried to compile this simple program: > ... > I apreciate any help. Use an Assembler. Assembly is much simpler than such HLLs, outputing more than 7000 lines for one line of yours. In Assembly, when you write one line, the Assembler outputs one line, and if this line is wrong, the error message tells you were it is located, and which is the problem. If you are a pure beginner, i recommend you to start with the Twelve... write one line, the Assembler outputs > one line, and if this line is wrong, the error message > tells you were it is located, and which is the problem. > > If you are a pure beginner, i recommend you to start with > the Twelve Assembly Lessons, available at RosAsm Site, in > the Tutorials section: > > <http://rosasm.org> > > Betov. I downloaded http://webster.cs.ucr.edu/AsmTools/HLA/HLAv1.96/hla.zip but hla.exe says it�s 1.95 On Aug 8, 1:50 pm, Rafael Anschau <spamt...@crayne.org> wrote: > Great stuff! > > Thanks! > > On Aug 8

Hi all: I have a problem when using the following code to push a file touser: HttpServletRequest response; filename = "foo bar.idx" response.setContentType("application/mubot.bitmap"); response.setHeader( "Content-disposition", "attachment;filename=" + filename); The file name show in the download dialogue is "foo", which isexpected to be "foo bar.idx", I think it may be caused by the spacebetween "foo" and "bar", so how can I fix it? Appreciate your help! On Mar 27, 7:29 pm, "shellon" <zhouchen...@gmail.com> wrote:...> The file name show in the download dialogue is "foo", which is> expected to be "foo bar.idx", I think it may be caused by the space> between "foo" and "bar", so how can I fix it?Note the output;<sscce>import java.io.File;class SpaceInName { public static void main(String[] args) throws Exception { File file = new File("foo bar.idx"); System.out.println( file.toURI().toURL() ); }}</sscce>HTHAndrew T.

boot problem
Greetings, I'm new to NetBSD, having come from Linux. I'm pretty much a unix intermediate user. Having installed NetBSD 2.0.2 on my machine. I then proceeded to use sushi to modify the startup configuration (rc.conf). Everything appeared to go fine. Upon rebooting the machine I get a whole slew of WARNING messages from /etc/rc. All of these messages are of the form: /etc/rc: WARNING: \$<variable> is not set properly - see rc.conf(5). Can anyone help or refer me to help? Thanks. K KCA <kadams@ssd.com> wrote: > I'm new to NetBSD, having come from Li

problem with JDBC
Hi,I have problem with JDBC.I am using netBeans 5.5 along with MySQL 5.0 And connector/J Driverfor the same.I have installed it properly.Even though I am getting databaseconnection in runtime window the program doesn't work.But when I run the program I get 'com.mysql.jdbc.Driver'ClassNotFoundException .What shoud I do to get it corrected?Can anybody hep me? Try pasting the connector in de directory:C:\Archivos de programa\Java\jdk1.6.0\jre\lib\extThat is in my computer; of course, you must translate it into the one equivalent in yours. ElLlaneroSolitario wrote:>Try pasting... 10, 5:56 pm, "Pappu" <prashant.po...@gmail.com> wrote: .... > I have problem with .. ...multi-posting? That is serious. Please find a solution to the multi-posting problem - soon. <http://www.physci.org/codes/javafaq.html#xpost> (N.B. X-post to c.l.j.p./g., w/f-u to c.l.j.p. only) Andrew T.

Problem with SSL
Hi,I am trying to develop an email client which will be able to send mailfrom more than one email accounts.The problem is that I am facing is that one mail account requires SSLand one does not.I am adding the security provider using the following statement:Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());Now, how do I remove this provider?Because theSeutrity.removeProvider(String)function requires a String specifying the name of the provider which Idon't have.Please help me.thanks. Nikhil wrote:> Now, how do I remove this provider?Because the> Seutrity.removeProvider(String)> function requires a String specifying the name of the provider which I> don't have.You don't have to remove the provider at all, and you don't even have to add it since 1.4. See the current JSSE Reference Guide in the JDK/Guide to Features/Security.

java problem
Hi Sir,I am developing my project in java, I have to work on JAI then whichversion I have to install & send me the path from where I have toinstall?ThanksManisha manisha chawla wrote:..Sub: java problem (/java question)Note that ..1)'Developing with JAI' ..would be a better (more specific) subject line than either of the ones you put.2) It is easier to avoid the problem of remembering toadd 'Mam' by not putting any 'Hi..' at the beginning.Nobody would miss it.>I am developing my project in java, I have to work on JAI then which>version I have to install ..It is usually best to use the latest version available.>..& send me the path from where I have to>install?Usually Java API's do not need to be 'installed',they just need to be available to the application at compile and runtime. Put them wherever is most convenient. OTOH, a google for 'JAI install' points to here (2ndtop link at instant of search)..<http://java.sun.com/products/java-media/jai/INSTALL-1_1_2.html>The Google description based on that link also shows 'The executable will try to install JAI within the latest JDK (or JRE) version that it finds

CDR Problem