EEE481 Homework 7

Problem 1
Consider the cart and pendulum system describing the evolution of the cart velocity, the
pendulum angle and the pendulum angular velocity (see details in
http://tsakalis.faculty.asu.edu/notes/models.pdf). The linearized equations around the unstable
equilibrium (angle 180deg, zero input, zero velocities) for the deviations of the state variables
from the linearization point, are:
(???? + ????) ????????
???????? = −???????????? + ????ℓ ????????
???????? + ????
????????
???????? = ????
????ℓ2 ????????
???????? = −???????????? + ????????ℓ???? + ????ℓ ????????
????????
The various constants are (all values in SI): friction coefficients ????????, ???????? = 0.1, pendulum mass ???? =
0.2, pendulum length ℓ = 0.2, cart total mass ???? = 0.4, gravitational constant ???? = 9.81.
The Force term is applied by the cart wheels driven by a DC motor with a model from the
applied voltage (say, -5:5Volts) to the force
???? = ???????? + ???? ????????
???????? + ????????????????, ???????????????? = ????????, ???? = ????????
????
Where the back-emf is taken as proportional to the motor angular velocity, which is also
proportional to the cart velocity, while the motor current generates the torque that is converted
to force by the wheels of radius r. The constants are motor resistance ???? = 5, inductance ???? =
0.1, emf/torque-constant ???? = 0.3, and wheel radius ???? = 0.1.
We want to design a controller for this system to stabilize the inverted pendulum and be able to
follow commands for the cart speed. We want to use a sequential approach where we first
stabilize the angle with an “inner-loop controller”. Then form the inner closed loop and design
an “outer loop controller” for the cart velocity.
There are two difficulties associated with this problem. One is that the angle subsystem has a
RHP pole and a zero at the origin. Its stabilization requires a controller with a RHP pole. We can
solve this as a modified PID problem where instead of the integrator we use a RHP pole
determined iteratively.
The other difficulty is technical, namely, how to create the various systems and loops without
leaving stray pole-zero cancellations (possibly in the RHP) and without resorting to tedious hand
calculations. (One approach for this is to implement the model in Simulink and use the “linmod”
command, and the other -taken here- is to work with the state space model using the
“feedback” command.)
1. Form the state-space description of the system with one input (Voltage) and three
outputs, (velocity, angle, Voltage). It is convenient to keep the voltage as an output to
make it easy to simulate with Matlab commands. We want to implement the controller

in DT with a sampling rate 100Hz. For this system, it is more convenient to follow the w-
plane approach, find the ZOH equivalent of the plant now and convert to the w-plane
and do not have to do corrections during the subsequent iterations.
2. Extract the angle subsystem (e.g., P(2), if the angle is the 2nd output) and design an
“inner-loop” stabilizing controller ???????? = ????(????????????+1)2
(????−????)(????????????+1), where “????” and the crossover
frequency are to be iterated to achieve a reasonable response (crossover should be
larger than the RHP poles, “????” should not be larger than the RHP pole). PM is to be
selected but large values are not very realistic (consider 40-50).
3. Form the inner loop system.
Hint: The Matlab command is
>> Pi=feedback(P*Ci,ss([1]),1,2);
The second argument is the feedback system, the third output is the index of the
P-inputs connected to the C-outputs (1, there is only one) and the fourth output is
the index of the P-outputs connected to the C-inputs (“2” for the angle being the
2nd output). Pi is a new system that has the same number of inputs and outputs,
the input is angle set-point and the outputs are the outputs of P.
4. Design a DT PID controller for the velocity (1st output, so P(1) subsystem).
Prefilter considerations: For step inputs, the linear control input becomes very large and
the angle can overshoot a lot. In practice, that is a problem because the input is limited
by the voltage constraints and if the angle becomes too large, the inverted pendulum will
fall (because of acceleration constraints). Here, it may be beneficial to consider a
prefilter, e.g., a lowpass filter ???? = 1
(????????+1) either first or second order roughly at the
bandwidth of the outer loop crossover. Design the controller for the filtered plant and
then include the filter in the controller. The objective is to keep the control input
amplitude and the angle excursions reasonable, without slowing down the loop too
much. For this size of cart-and-pendulum, we expect stabilization in a few seconds. Also,
keep in mind that the outer loop system has “negative gain”.
5. Form the outer loop system as in Part 3 and check the responses.
>> Po=feedback(Pi*Co,ss([1]),1,1);
The last argument “1” assumes that the first output is the cart velocity.
6. Since all the design was done in the w-plane, it is straightforward to discretize the
controllers (using Tustin) and form the feedback loops with the “feedback” command.
Provide the transfer functions of your controllers and plots of the relevant time and
frequency responses.

Problem 2
Consider the system
????(????) = −0.4???? + 4
????2 + 4???? + 4
1. Design a DT controller using the w-plane method for crossover 4 rad/s, PM = 45 degrees
and a sampling time of 10 Hz.
2. For an additive measurable disturbance at the plant output with transfer function
????(????) = 1
????+1 , design a DT feedforward controller H(z) to reduce the transient component
of the DT PID designed in Part 1. Use the “naïve” approach and comment on the benefit
of such a component for this case.
Problem 3
Consider the cart and pendulum system of Problem 1.
1. Design a DT state estimator (observer) for the system with outputs cart velocity and
pendulum angle. It is convenient here to use a LQ approach because of the multiple
outputs. Choose the estimator gain to achieve convergence faster than one second.
Hint: The state estimator has the form ????????+1 = ???????????? + ???????????? + ????(???????? − ????????) where
x,y are the estimated states and outputs and m is the measurements (the plant
y_k). The design equations are implemented in Matlab by the function “dlqr”
???? = ????????????????(????′, ????′, ???? ∗ ????2 + ???????? ∗ ???? ∗ ????′, ????)′
The design parameters have been simplified to to depend only on a gain factor
mu (such that larger mu yield higher bandwidth) and the sample time T. The
performance is characterized by eigenvalues of the observer eig(A-L*C) and its
Sensitivity (error system)
???????? = [???? − ????????, ????, ????, −????]
2. Design a DT state feedback to stabilize the cart-and-pendulum system. You may add an
offset to the velocity measurement to enable convergence to a nonzero velocity but do
not worry about integral action control.
Hint: The LQR problem minimizes the cost of states (x’Qx) and control inputs
(u’Ru), for the system
????????+1 = ???????????? + ????????????
Its solution is the linear state feedback
???????? = −???????????? => ????????+1 = (???? − ????????)????????
It is implemented in Matlab by the function “dlqr”, with syntax
???? = ????????????????(????, ????, ????′ ∗ ????, ????????)
The design parameters are Q = C’C (penalizing the output) and ???? which is the
penalty on the control input and serves as an inverse-gain parameter. When ????
decreases the controller bandwidth increases. The controller performance is

characterized by the eigenvalues of A-BK and the Sensitivity of the input to
disturbances at the plant input
???????? = [???? − ????????, ????, ????, −????]
3. Combine the state feedback with the state estimator to obtain an output feedback
controller. Illustrate the time and frequency responses of the controller.
Hint: The “model-based” controller uses the state feedback with the states
replaced by their estimates. The combined controller is (D=0)
????????+1 = ???????????? + ???????????? + ????(???????? − ????????) ; ???????? = −???????????? ; ???????? = ????????????
=> ????????+1 = ???????????? − ???????????????? − ???????????????? + ????(????????) ; ???????? = −???????????? ;
Thus, for negative feedback, the controller state-space representation becomes
[???? − ???????? − ????????, ????, ????, 0]
The controller has two inputs, the measured outputs of the system (m_k), and
one output, the control u_k. An external input (scaled reference) may be added
to the measurement m_k (i.e., the y_k of the plant). However, tracking of a
setpoint requires integral action which is not considered here.
Problem 4
Consider the cart and pendulum stabilized by the inner-outer PID controller of Problem 1. In the
context of refining the plant models in case of a change, we want to estimate the plant transfer
functions based on input-output data. The system is, of course, unstable and data cannot be
collected without a stabilizing controller.
Use the closed-loop system of Problem 1 with input reference velocity and outputs angle,
velocity, and voltage (control input). Apply a reference input (Random or Square Wave and
combinations) with maximum amplitude around 1. Add random noise to the outputs (angle,
velocity) at a level of 0.02 ~ 0.5 degrees.
N=10000;
t=(0:N-1)’*T;
rn=(rand(N,1)-.5); n1 =(rand(N,1)-.5)*0.02; n2 =(rand(N,1)-.5)*0.02;
r=sign(sin(6.28/10*t))/2+rn;
Y=lsim(Pdo,r); % Pdo created in Problem 1
plot(t,Y)
u=Y(:,3); y1=Y(:,1)+n1; y2=Y(:,2)+n2;
Design a batch parameter estimator to identify the transfer functions from the plant input “u” to
each output “yi” (angle, velocity). Look at the system equations to decide the order of the
estimated transfer functions. Try different filters for the input-output pairs and compare with
the known transfer functions. Could the estimates be used to redesign the controller

 

Cognitive development


Cognitive development between the ages of 7 and 11 is impressive, beginning with improvements in control processes, and increase in processing speed and capacity, and a growing foundation of knowledge. This chapter in our book discusses the views of Piaget and Vygotsky regarding the child’s cognitive development, which involves a growing ability to use logic and reasoning (as emphasized by Piaget) and to benefit from social interactions with skilled mentors (as emphasized by Vygotsky). According to Piaget, school-age children are much better able than preschoolers to understand logical principles, provided the principles are applied to concrete examples. Because the school years are also a time of expanding moral reasoning, this chapter also looked at Kohlberg’s stage theory of moral development as well as current evaluations of his theory.

Additionally this chapter explores the information-processing perspective on cognitive development, beginning with the Gibson’s concept of affordances. It then discusses changes in the child’s processing speed and capacity, control processes, knowledge base, and metacognition. Linguistic development during the school years is also extensive, with children showing improvement in vocabulary and pragmatics. This is clearly indicated by their newfound delight in words and their growing sophistication at telling jokes. If you have ever spent time in a second grade classroom you can immediately tell what stage the children are in by who is telling and who is getting the jokes. Jokes become very funny to children at this age because of their newfound ability to hold 2 or more concepts in their head at the same time allowing them to fully understand the humor in the jokes they are telling and hearing.

  1. Which main theory of cognitive development (Piaget, Vygotsky, Information Processing, etc) stands out the most to you? Why?
  2. Which theory of language development (social learning, assimilation and accomidation, or operant conditioning) stands out the most to you? Why?
  3. Share a personal experience (first hand or someone you know, respecting confidentiality) with learning disabilities and/or special education/inclusion.

MGT-211 human resource

Read the case given below and answer the questions:

Meltos Co.is one of the world’s largest bakery businesses with a significant market share in many of the world’s biggest bakery markets, including many emerging markets. It has a long and proud tradition, stretching back more than 150 years, including a long history of developing its employees, which has remained part of its ethos during its progress to becoming a global company.

Despite very positive sales figures over the last 12months, Meltos Co. has prioritized streamlining the business to make it more competitive and has placed a strong emphasis on reducing costs over the next 18 months. Despite being keen to preserve its longstanding reputation as a firm that is committed to developing all its employees, in respect of learning and development, this ‘streamlining’ activity has focused on:

  • ensuring a clear return on investment in training activities

changing the way that learning programs are delivered and being more creative in developing approaches to learning.

connecting training activities to the strategic needs of the firm.

The most important driver of the assessment of its training provision at Meltos Co.is change. Whilst performing well in the marketplace, senior management continue to express discontent with levels of productivity and employee performance. Moreover, senior management has determined that the company needs to become more flexible and adaptable to respond to change in its market context, for example by an ability to adapt organizational structures to meet new business needs or through the introduction of technological innovation. Therefore, Meltos Co. wants to move towards a system of continuous improvement by creating a culture whereby workers are empowered to implement small incremental changes, rather than have substantial change imposed on them from time to time.

Traditionally, training needs analysis at Meltos Co. has been ‘gap-led’. In other words, training tends to be focused where Meltos Co. identifies a gap in capability – for example, where the introduction of new technology requires worker skill to be updated, company policy is changed or a key worker leaves the firm, requiring training to be provided to their replacement. Typically, this gap-led identification of need is conducted at a local level, with little reference made to the wider national or international workforce.

Currently, the company runs several large training events each year designed to update manufacturing staff on everything from health and safety changes, business strategy and company performance to the adoption of new production technology. This is sometimes coupled with skills training for these workers as and when appropriate.

The head of learning and development, (L&D)responding to a call to cut costs from the HR director, is now of the opinion, however, that such long training programs, often of up to three or four days, are no longer the most cost-effective and efficient means by which to develop the staff. Such training has the dual problem of requiring regular investment and repeat sessions to cover workers on different shifts or at different plants, as well as leading to undesirable downtime of certain aspects of production. In particular, the head of T&D is keen to reduce the reliance on external training providers to design and deliver interventions to different workforce groups, from senior management to shop-floor workers.

Nabeel , the head of learning and development at Meltos Co. recently attended a seminar at a local university on ‘the changing nature of workplace HRM’. He was slightly alarmed to find out that much of the company’s practice was seen as outdated. In particular, he was interested in examining how some more contemporary approaches and techniques in HRM could help the company both reduce costs and better performance through continuous improvement.

Questions

1.What changes would you recommend that Meltos Co. make to their current learning and development provision to reduce costs and improve performance?(4 Marks)

2.Discuss how e-learning, competency frameworks and improved knowledge-sharing at Meltos Co. might help to cut costs and make the HRM at Meltos Co. more strategic.(4 Marks)

3.How might the firm seek to ensure a return on investment for its learning and development activity?(4Marks)

4.How effective is training in the organization you work for and mention a few methods being used for effective development?(3 Marks)

Childhood Obesity 2

TV and obesity are not unrelated; children are sitting and watching rather than running and playing. And TV is the perfect time for ingesting unhealthy, fat producing snacks. Part of the joy of mindlessly watching TV is crunching something in your mouth. TV promotes increased consumption. Over 400 studies have now been done, one after another showing that TV time is coupled with both obesity and poor food choices in children and adults. Television viewing occupies a large portion of people’s lives, even infants and very young children. One well known statistic is that children graduating from high school have spent more hours in front of the TV than in school and this must be added to the hours they have spent with video games and computers. Children are in love with the computer. Surfing the internet, playing games, and connecting with friends occupy children for hours at a time, in some cases making television itself a thing of the past. To be a child no longer requires a trip to the library, the park, or a friend’s house. Here are 3 of the facts that you will read about in the notes for this week, these are a few that really stood out to me.

  • Children watching Saturday morning cartoons see a food commercial every five minutes.
  • 34% of children with poor reading skills watched 6 hours or more of TV daily.
  • The average child sees 10,000 food advertisements a year. 95% are for fast food, sugary cereals, soft drinks, and candy.

POETRY

Write a 4 paragraph essay on how do these two poems we have covered each show us what it is to be a strong woman? Use logic, along with specifics from each poem, to support your argument.

Poems below:“What Do Women Want?”by Kim Addonizio

I want a red dress.

I want it flimsy and cheap,

I want it too tight, I want to wear it

until someone tears it off me.

I want it sleeveless and backless,

this dress, so no one has to guess

what’s underneath. I want to walk down

the street past Thrifty’s and the hardware store

with all those keys glittering in the window,

past Mr. and Mrs. Wong selling day-old

donuts in their café, past the Guerra brothers

slinging pigs from the truck and onto the dolly,

hoisting the slick snouts over their shoulders.

I want to walk like I’m the only

woman on earth and I can have my pick.

I want that red dress bad.

I want it to confirm

your worst fears about me,

to show you how little I care about you

or anything except what

I want. When I find it, I’ll pull that garment

from its hanger like I’m choosing a body

to carry me into this world, through

the birth-cries and the love-cries too,

and I’ll wear it like bones, like skin,

it’ll be the goddamned

dress they bury me in.

Phenomenal Woman by Maya Angelou

Pretty women wonder where my secret lies.
I’m not cute or built to suit a fashion model’s size
But when I start to tell them,
They think I’m telling lies.
I say,
It’s in the reach of my arms
The span of my hips,
The stride of my step,
The curl of my lips.
I’m a woman
Phenomenally.
Phenomenal woman,
That’s me.

I walk into a room
Just as cool as you please,
And to a man,
The fellows stand or
Fall down on their knees.
Then they swarm around me,
A hive of honey bees.
I say,
It’s the fire in my eyes,
And the flash of my teeth,
The swing in my waist,
And the joy in my feet.
I’m a woman
Phenomenally.
Phenomenal woman,
That’s me.

Men themselves have wondered
What they see in me.
They try so much
But they can’t touch
My inner mystery.
When I try to show them
They say they still can’t see.
I say,
It’s in the arch of my back,
The sun of my smile,
The ride of my breasts,
The grace of my style.
I’m a woman

Phenomenally.
Phenomenal woman,
That’s me.

Now you understand
Just why my head’s not bowed.
I don’t shout or jump about
Or have to talk real loud.
When you see me passing
It ought to make you proud.
I say,
It’s in the click of my heels,
The bend of my hair,
the palm of my hand,
The need of my care,
‘Cause I’m a woman
Phenomenally.
Phenomenal woman,
That’s me.

humanities

Read a passage concerning US Army Sergeant Timothy Hennis. Under the US Constitution, the Fifth

Amendment prohibits the same sovereign entity from trying a defendant for the same crime twice.

However, it does not prohibit another sovereign entity for charging the defendant. What do you think?

Should a State be allowed to charge and convict a defendant for the same crime they were found not

guilty of in another State or Federal Court? Why or why not?

Qualitative Study Alignment

In qualitative research, choosing an applicable research topic and problem should incorporate a desire to understand how and why something is happening. Sometimes researchers might also explore what is happening and if it aligns with individuals’ perspectives or understanding of an issue or event.

  • Write a succinct research problem statement that you are considering for your mock study in this class.
  • respond to at least 1 in a minimum of 150 words. Then, share an example from your professional experience to support your assertions.

Discussion 2
Think about the different types of qualitative research topics that are available. Depending on your particular scholarly and professional interests, these topics can be vast and encompass so many areas of our social world, including leadership, business, education, and healthcare, among others.

  • How does a researcher find people and places to study?
  • respond to at least one in a minimum of 150 words. Explain why you agree or disagree. Then, share an example from your professional experience to support your assertions.

Assignment
This week, you will begin formulating a mock qualitative study by focusing on key areas of qualitative study alignment, including developing a research problem, purpose, and research question(s).

Pharmacologic Approaches to the Treatment of Insomnia in a Younger Adult

Examine Case Study: Pharmacologic Approaches to the Treatment of Insomnia in a Younger Adult. You will be asked to make three decisions concerning the medication to prescribe to this patient. Be sure to consider factors that might impact the patient’s pharmacokinetic and pharmacodynamic processes.

At each decision point, you should evaluate all options before selecting your decision and moving throughout the exercise. Before you make your decision, make sure that you have researched each option and that you evaluate the decision that you will select. Be sure to research each option using the primary literature.

Introduction to the case (1 page)

  • Briefly explain and summarize the case for this Assignment. Be sure to include the specific patient factors that may impact your decision making when prescribing medication for this patient.

Decision #1 (1 page)

  • Which decision did you select?
  • Why did you select this decision? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • Why did you not select the other two options provided in the exercise? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • What were you hoping to achieve by making this decision? Support your response with evidence and references to the Learning Resources (including the primary literature).
  • Explain how ethical considerations may impact your treatment plan and communication with patients. Be specific and provide examples.

Decision #2 (1 page)

  • Why did you select this decision? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • Why did you not select the other two options provided in the exercise? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • What were you hoping to achieve by making this decision? Support your response with evidence and references to the Learning Resources (including the primary literature).
  • Explain how ethical considerations may impact your treatment plan and communication with patients. Be specific and provide examples.

Decision #3 (1 page)

  • Why did you select this decision? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • Why did you not select the other two options provided in the exercise? Be specific and support your response with clinically relevant and patient-specific resources, including the primary literature.
  • What were you hoping to achieve by making this decision? Support your response with evidence and references to the Learning Resources (including the primary literature).
  • Explain how ethical considerations may impact your treatment plan and communication with patients. Be specific and provide examples.

Conclusion (1 page)

  • Summarize your recommendations on the treatment options you selected for this patient. Be sure to justify your recommendations and support your response with clinically relevant and patient-specific resources, including the primary literature.

 

Note: Support your rationale with a minimum of five academic resources. While you may use the course text to support your rationale, it will not count toward the resource requirement. You should be utilizing the primary and secondary literature.

case study

Insomnia
31-year-old Male

76-year-old Iranian Male

BACKGROUND

This week, we examine a 31-year-old male who presents to the office with a chief complaint of insomnia.

SUBJECTIVE

Patient is a 31-year-old male. He states that his insomnia has gotten progressively worse over the past 6 months. Per the patient, he has never been a “great sleeper” but is now having difficulty both falling asleep and staying asleep at night. The problem began approximately 6 months ago after the sudden loss of his fiancé. The patient states this is affecting his ability to perform his job, which is a forklift operator at a local chemical company. The patient states he has used diphenhydramine in the past to sleep but does not like the way it makes him feel the morning after. He states he has fallen asleep on the job due to lack of sleep from the night before. The patient’s medical record from his previous physician states that he has a history of opiate abuse, which began after he broke his ankle in a skiing accident and was prescribed hydrocodone/apap (acetaminophen) for acute pain management. The patient has not received a prescription for an opiate analgesic in 4 years. The patient states recently he has been using alcohol to help him fall asleep, approximately four beers prior to bed.

MENTAL STATUS EXAM

The patient is alert and oriented to person, place, time, event. He makes good eye contact and is dressed appropriately for time of year. He denies auditory/visual hallucinations. Judgement, insight, and reality contact are all intact. Patient denies suicidal/homicidal ideation, and is future oriented.

Decision Point One

Select what you should do:

 

Zolpidem: 10 mg daily at bedtime

Trazodone 50 mg po at bedtime

Hydroxyzine: 50 mg daily at bedtime

Corporate University organizational

  1. Discuss how formal and/or informal organizational leaders are key to the success of the Corporate University organizational learning model.
  2. Do you (or any of your peers) have an example of an organization you have worked for that applies the CU model (or type of model) when it comes to projects (or organizational goals)? If so, how were such programs strategically planned and implemented? If you do not have an example, can you think of an external instance of a successful implementation?
  3. Discuss the various Learning Management Systems that you may be aware of. If you do not have direct experience, explore the Learning Management System web sites/demos/videos, etc. Then, select one such system and discuss the benefits and drawbacks.
  4. If you were a CEO of a major company, do you believe significant financial investments into using the best LMS outweigh the initial economic costs to a business, or should affordability be the priority or kept in mind?
  5. What do you believe are the cost-benefits of selecting the suitable LMS, and how does it impact the learning organization?

International Destination Report

Part 1: Background Information

  • Briefly introduce the country you chose
  • Why you chose this destination
  • Location (where it is in relation to the rest of the world), size comparison (for example: similar in size to Texas, twice the size of Oklahoma, etc.)
  • Briefly discuss geography, climate
  • Currency and exchange rates (with USD)

 

Part 2: Culture, Interesting Facts and News

  • Culture (i.e., cultural norms, customs, and traditions, i.e. etiquette, food and drink, fashion, habitat, etc.)
  • At least two interesting or fun facts
  • One recent news event that may influence travel and tourism to this country

 

Part 3: Tourism Attractions and Regulations

  • Tourism
    • Major attractions, art, entertainment (must see sights)
    • A festival that highlights a unique aspect of the country, for example, culture or food
    • A UNESCO World Heritage Site in the country that you would like to visit (on the rare chance that you have chosen a destination with no WHS, please indicate this)
  • Travel and tourism regulations (for example: visa requirements, custom regulations, COVID-19-related regulations)

 

Part 4: Traveling to the Destination

  • Travel to the destination
    • Assume you are taking a trip there in October 2023, flying from OKC. Discuss the following:
      • Travel route, layovers, travel time, cost (flying coach), etc.
    • Major travel routes while in country, and getting around within the destination

 

Part 5: Summary and Sources

  • Summary
  • Sources used (at least 10 sources, APA or MLA style)
Powered by WordPress