This invention relates generally to a motion control system, and more particularly to an energy efficient motion control system.
A motion control system is used in different positioning applications, e.g. single-axis positioning or multiple-axis positioning. A single-axis positioning motion control system includes a motion controller, a servo amplifier, and a motor. Motion of the motor follows a designated trajectory, such that state and/or control constraints, i.e., acceleration, velocity, jerk, are observed. A trajectory can also be designed to reduce the vibration induced by the motion of a motor.
A conventional motion control system employs a controller which generates a time-optimal trajectory to maximize the throughput of industrial systems. However, some conventional methods for generating the trajectories disregard the energy consumption of the motion control system, and can lead to a high peak power and a waste of energy. The waste of energy is clearly undesirable and should be avoided. Also, the high peak power demand is also undesirable from a cost effective point of view, because users of the motion control systems may have to pay penalized electric bill when the power consumption exceeds certain upper bound.
Another method determines the trajectory such that the energy consumption of the motion control system is below a specified threshold. However, those methods do not consider trade off between the energy consumption and performance of the system and the generated trajectories are not always optimal. Yet another method balances the energy consumption and the productivity of the motion control system without considering constraints of the system. This is because the solution to the trajectory optimization problem with various constraints including velocity, acceleration, and current constraints is difficult and yet to be solved.
Another disadvantage of conventional motion control systems is a lack of adaptability, because the requirements of the motion control systems can change over time and/or in dependence of the applications. For example, for some applications, the users may pay more attention to the energy consumption of the motion control system over its productivity.
Accordingly, there is a need to provide a motion control system that makes an effective trade off between the energy consumption and the productivity of the motion control system, such that the overall cost of the operations of the motion control system is reduced. Furthermore, there is a need to provide such trade off that considers various constraints of the motion control system including velocity, acceleration, and current constraints.
It is an object of the invention to provide an energy efficient motion control system.
It is further object of the invention to provide a method that makes an effective trade off between the energy consumption and tracking time of an operation of the motion control system.
It is further object of the invention to provide such trade off that considers various constraints of the motion control system including velocity, acceleration, and current constraints.
It is further object of the invention to provide a method for generating energy efficient trajectory of a motion of a motor of the motion control system.
A motion control system includes one or combination of a motion controller, an amplifier, and a motor. The trajectory of the motion of the motor has a key role in the motion control system. Embodiments of the invention disclose an energy-efficient motion control system and methods to generate an energy-efficient trajectory of the motion of the motor of the motion control system to reduce the energy consumption of the entire motion control system. In some embodiments, an energy efficient trajectory is generated by solving a constrained nonlinear optimization problem with dynamic, acceleration, control, and velocity constraints.
Some embodiments of the invention are based on a realization that a model of energy consumption of the motion control system can be determined. A cost function, which is a function of a tracking time, is determined based on that model and can be minimized subject to constraints to produce the energy-efficient trajectory of the motion of the motor of the motion control system.
Accordingly, one embodiment discloses a method for generating a control signal for controlling an operation of a motion control system suitable for positioning a load. The method includes determining a cost function based on a model of energy consumption of the system and a function of a tracking time; minimizing the cost function subject to constraints to determine a trajectory of the control signal; and generating the control signal based on the trajectory and a current state of the system, wherein the steps of the method are performed by a processor.
In some variations of this embodiment; the model is determined based on the energy consumption of components of the system. For example, the model may be determined based on at least one of a copper loss at a motor of the system, an iron loss at the motor of the system, a switching loss of an amplifier of the system, and a mechanical work required for positioning the load, or combination thereof. Also, in some embodiments, the constraints includes one or combination of an acceleration constraint of a motor, a velocity constraint of the motor, an input current constraint of the motor, a dynamic constraint of the motor, the tracking time, an initial state of the motor, and a final state of the motor.
The method may also include determining a Hamiltonian based on the cost function and the constraints; determining a set of conditions minimizing the Hamiltonian; and determining the trajectory that satisfies the set of conditions. The method may also include formulating a resultant multi-point boundary value problem based on the set of conditions; and solving the problem to produce the trajectory.
Additionally or alternatively, the method may also include defining a Hamiltonian based on the cost function and the constraints, wherein the Hamiltonian includes a first Hamiltonian for a positive control signal and a positive energy consumption, a second Hamiltonian for a negative control signal and the positive energy consumption, and a third Hamiltonian for the negative control signal and the negative energy consumption; determining a first set of conditions for a first sub-trajectory, such that the first Hamiltonian is minimized; determining a second set of conditions for a second sub-trajectory, such that the second Hamiltonian is minimized; determining a third set of conditions for a third sub-trajectory, such that the third Hamiltonian is minimized; and determining the set of conditions based on the first, the second, and the third set of conditions.
Additionally or alternatively, the method may also include determining nonlinear algebraic equations (NAE) satisfying the set of conditions, such that the NAE defines the control signal at a current point of the tracking time; determining boundary conditions, wherein the boundary conditions include terminal conditions, and entry conditions for each of the first, the second, and the third sub-trajectory; determining nonlinear ordinary differential equations (ODE) satisfying the boundary conditions, such that the ODE defines a state and a costate of the system at the current point of the tracking time; and solving the ODE and the NAE alternately over the tracking time until the boundary conditions are satisfied to produce the trajectory. The NAE may include linear algebraic equations.
In some variations of the embodiment, the method may include determining a preliminary trajectory; and selecting the preliminary trajectory as the trajectory, if a gradient of the cost function with respect to the preliminary trajectory is less than a threshold. The method may also include determining a finite dimensional optimization problem that minimizes the cost function subject to the constraint; and determining the trajectory by solving the problem.
Additionally or alternatively, the method may also include performing a discretization of decision variables, the cost function, and the constraints; approximating an infinite dimensional optimization problem with the finite dimensional optimization problem; generating a preliminary trajectory; determining a gradient of the cost function with respect to the preliminary trajectory; determining the trajectory based on the preliminary trajectory, if the gradient is less than a threshold; and otherwise updating the preliminary trajectory based on the gradient and the constraints; and repeating the determining the gradient and the determining the trajectory.
Another embodiment discloses a motion control system, which includes a motor configured to be controlled based on a control signal; a processor configured to execute a trajectory generation module and a control module, wherein the trajectory generation module determines a trajectory of the control signal based an energy model, such that the trajectory optimizes the energy consumption as a function of a tracking time of the system, wherein the energy model is a model of energy consumption of the system, and the control module generates the control signal based on a current state of the system and the trajectory; and an amplifier for generating a control input to the motor based on the control signal.
As shown in
The trajectory generation module 110 determines the trajectory 105 by minimizing a cost function subject to the constraints 104. The cost function is determined based on an energy model 116 of the system 100 and a function of a tracking time 115, as described below. The motion controller can be implemented using a processor 111.
The control module 120 determines a control signal 106 based on the trajectory 105 and feedback signal 108, and outputs the control signal 106 to the amplifier 102 which determines and outputs a current or voltage input 107 to the motor 103. In one embodiment, the feedback signal 108 describes a current state of the motion control system. In another embodiment, the feedback signal 108 describes a motion of the motor 103. For example, in one variation of this embodiment, the feedback signal 108 is a position of the motor.
In some embodiments, the control module 120 performs feedforward and/or feedback operation to determine the control signal 106.
The embodiments shown in
Energy Model of the Motion Control System
For example, the dynamic constraint 218 includes consideration of dynamics of the motor of the motion control system. The dynamics of the motor can be defined according to
where x=(x1,x2)=(θ,ω) is a state of the motor state representing a position of the motor position and an angular velocity respectively, u is the control input to the motor, d, c are the viscous and coulomb friction coefficients of the motor, respectively, h is a constant coefficient, a single dot indicates the first derivative, and double dots the second derivate, x2 is a second component of the state of the motor x representing an angular velocity of the motor. The embodiment of the control input to the motor depends on the type of the motor. In one embodiment, the control input to the motor includes a current input into the motor. Additionally or alternatively the control input can include control signal of a voltage into the motor.
Generally, the gross energy consumption of a motion control system includes copper losses and iron losses, switching losses of an amplifier, and a mechanical work required for positioning the load. The mechanical work is influenced by the operational constraint 214. For example, the operational constraint 214 can include a size and/or a shape of a load, a distance of a relocation of the load, and other conditions of the operation of the motion control system.
The copper losses are due to the flow of current through the stator windings of the motor and can be defined according to
Ru2,
where R is the resistance of windings of the motor and is usually supplied by a manufacture of the motor. The iron losses are result from eddy currents and hysteresis, which can be approximated according to
Keω2u2+Kh|u|γω,
where Ke and Kh are constant coefficients of the eddy currents and the hysteresis losses of the motor, γ is the Steinmetz constant. The Steinmetz constant as well as the hysteresis and eddy current constants can be determined, e.g., using curve fitting from the data provide by manufacturer of the motor.
The losses in the amplifier, e.g., a pulse-width-modulation amplifier, include switching losses, conduction losses, and gate drive losses. For example, the switching losses can be determined according to
Ks|u|,
where Ks is a constant coefficient of the switching loss.
The mechanical work can be modeled according to
Ktωu,
where Kt is the torque constant of the motor, and τ=Ktu, and τ is the torque generated by the motor. The torque constant is usually supplied by the manufacture of the motor.
Hence, one embodiment of the invention describes the energy consumption 230 of the motion control system according to the following model 116
P(x,u)=Ru2+{Kex22u2+Kh|x2∥uγ|}+K2|u|+Ktux2.
Moreover, for example, if iron losses and switching losses are relatively small, Ke, Kh and Ks may be zero. Therefore, in this case, the above model 116 can be replaced by the following equation.
P(x,u)=Ru2+Ktux2.
Some embodiments of the invention consider the energy flow constraint 212 to determine the energy model 116. For example, when P(x,u)>0, the motion control system takes the energy from the utility grid. On the other hand, the mechanical work can be converted into energy by the motor and can flow back to the grid or be dissipated by the brake chopper. One embodiment uses the energy flow constraint requiring the brake chopper to dissipate the negative power P(x,u). Alternative embodiment uses the energy flow constraint requiring the energy to return from the motion control system back to the utility grid.
For example, in a more complex case, when the energy is not returned back to the grid, the energy model 116 is determined according to
the establishment of an energy consumption model, which accurately captures the characteristics of the actual energy consumption of a motion control system is critical to implement an energy efficient motion control system.
In one embodiment the function of the tracking time is a tracking time T 242 at which the load has to be position into a desired position. For example, the tracking time can be provided by the user of the motion control system. The cost function 245 for the energy consumed by the motion control system over the tracking period T can include an integral 246 of the gross energy consumption according to
E=∫0TQ(x(t),u(t))dt. (1)
In some embodiments, the energy model is modified according to variation in implementations of the motion control system. For example, the energy consumption of a small scale motion control system can be approximated based on only the resistive loss. In this embodiment, the energy model can be represented as a quadratic function of control.
After the energy model and the cost function are defined, the embodiments minimize 250 the cost function 245 to determine the energy-efficient trajectory 105. Consequently, the trajectory generated by minimizing a cost function can obtain a good energy efficient motion control system. In some embodiments, when the cost function and the constraints exactly depict the properties of a motion control system, an energy optimal motion control system is resulted. The cost function can be used to make the trade off between energy consumption and tracking time. For example, in one embodiment, the cost function is defined by Equation (1). Thus, the trade off between energy consumption and tracking time is achieved by varying the tracking time T, which can be specified by a user through a user interface.
In alternative embodiment, the function 115 of tracking time is represented a trade off between the tracking time and the energy consumption. For example, the cost function is determine as an integral 246 according to
E=∫0t
where the tracking time tf is unspecified, and ε 244 is a preference constant, which can be introduced by a user. A large value of the preference constant ε reflects the importance of the tracking time of the operation of the motion control system, i.e., productivity of the system, over the energy efficiency. A small value of the preference constant ε means the opposite, i.e., reflects importance of the energy efficiency over the tracking time.
The current disclosure describes the embodiments based on the cost function according to Equation (1). Its extension to different cost functions is straightforward to those skilled in the art.
Some embodiments of the invention consider physical limitation of a design of the motion control system. Typical motion control system is subject to a number of constraints, such as static 216 and dynamic 218 constraints. The static constraint 216 includes an acceleration constraint, a velocity constraint, and an input current constraint of the motor. The dynamic constraint 218 represents dynamics of the motor. In the rest of this disclosure, the constraints 219 include at least some of the static and the dynamic constraints, the tracking time, and an initial and a final state of the motor. The consideration of constraints in the trajectory generation can remove the limitations introduced by the ignorance of constraints in the design stage, thus improves the energy efficiency of a motion control system.
Hamiltonian Control Optimization
Accordingly, some embodiments determine 310, based on the cost function 245 and the constraints 219, the Hamiltonian 315 and determine 320 a set of conditions 325 that minimizes the Hamiltonian 315. A preliminary trajectory 335 is generated 330 based on parameters 345. Initially, according to one embodiment, the parameters 345 are guessed or estimated 340 based on the conditions 325.
The preliminary trajectory 335 is generated iteratively until 350 the conditions 325 are satisfied. When the preliminary trajectory 335 satisfies 356 the conditions, the preliminary trajectory is outputted 380 as the trajectory 105, because such trajectory is guaranteed to minimize the energy consumption without violating constraints. Otherwise 355, the parameters are updated 370 based on the preliminary trajectory 335, and subsequent preliminary trajectory is generated 330.
Some embodiments perform a gradient based search of the trajectory 105. Additionally or alternatively, some embodiments solve a resultant multi-point boundary value problem which is formulated from the set of conditions, as described in more details below. The parameters 345 can include, but are not limited to, one or combination of state and costate trajectories, entry time of each segment of the trajectory, switch times for each segment of the trajectory, and lagrange multiplier π.
Some embodiments of the invention use the cost function is a piecewise function of Equation (1). Accordingly, in those embodiments, the corresponding Hamiltonian is defined piecewisely over, e.g., the control input u.
Accordingly, the trajectory 105 is also partitioned into three set of sub-trajectories. A first set of sub-trajectories 404 corresponds to the first Hamiltonian 401. A second set of sub-trajectories 405 corresponds to the second Hamiltonian 402. A third set of sub-trajectories 406 corresponds to the third Hamiltonian 403.
Similarly, the set of conditions also determine for each Hamiltonian. Specifically, a first set of conditions 407 corresponds to the first Hamiltonian 401. A second set of conditions 408 corresponds to the first Hamiltonian 402. A third set of conditions 409 corresponds to the first Hamiltonian 403. The first, the second, and the third set of conditions, or their combinations, form the set of conditions 410 that the trajectory 105 has to satisfy.
To determine each set of conditions, the corresponding Hamiltonian has to be explicitly defined. For example, the Hamiltonian 401 includes terms of the energy model, and the products of static and dynamic constraints, and their corresponding Lagrange multipliers. Some embodiments first convert all state constraints to mixed state control constraints, and then define the Hamiltonian based on the mixed state control constraints. For example, the velocity constraint is a state constraint because the velocity constraint does not include control variable. Thus, the velocity constraint is converted into a mixed state control constraint according to
x2−νmax≦0dx2+c+bu≦0,
−x2≦0−dx2−c−bu≦0,
where νmax is the maximum velocity, and d, c, b, νmax are constant. Similarly, the acceleration constraint is converted to a mixed state control constraint according to
dx2+c+bu−amax≦0
−amax−dx−c−bu≦0,
where amax is constant and defines the maximum acceleration.
Accordingly, one embodiment defines the Hamiltonian 401 according to
H11={Ru2+Kex22u2+Khx2uγ+Ksu+Ktx2u}+
wherein
where
λ=(λ1,λ2), μ=(μ1,μ2), ν=(ν1,ν2) are Lagrange multipliers corresponding to the dynamic, velocity and acceleration constraints respectively.
The Hamiltonian 402 is defined according to
H12={Ru2+Kex22u2+Khx2(−u)γ−Ksu+Ktx2u}+
The Hamiltonian 403 is defined according to
H2=λT(Ax+Bu+C)+ν2(−amax−dx2−c−bu)
However, the definition of the Hamiltonian varies across the embodiments. For example, some embodiments include a state constraint in the Hamiltonian. Alternative embodiments include a control constraint in the Hamiltonian. Other variations of the Hamiltonian are within the scope of the invention.
After the Hamiltonians are defined, each set of conditions, i.e., the first, the second, and the third set of conditions, is determined for the corresponding Hamiltonian. For example, the first set of conditions 407 is determined for the first Hamiltonian 401 and each sub-trajectory in the first set of sub-trajectories 404 has to satisfy the first set of conditions 407 in order to optimize the energy consumption of the motion control system.
In one embodiment, the first set of conditions for the first Hamiltonian H11 is defined as follows.
First Condition:
dynamics of the state and costate defined according to
The first equation is the dynamic constraint or equivalently the dynamics of a motor.
Second Condition:
Control input u satisfies
Third Condition:
If the maximum velocity constraint becomes active at a point of tracking time t2.
where π is the Lagrange multiplier.
Fourth Condition:
Conditions of Lagrange multipliers μ, ν satisfy
Fifth Condition:
Boundary conditions are dependent on the structures of a trajectory. Assuming a sub-trajectory corresponding to the first Hamiltonian is defined over the interval tε[0,t3]t1≦t2<t3, and maximum acceleration constraint and velocity constraint are active orderly, the boundary conditions of the sub-trajectory are
where t1 is the point of the tracking time when acceleration constraint becomes inactive, and t2 is the time when velocity constraint becomes active.
The first set of conditions is used to define the first set of sub-trajectories where the optimal control input is positive. The first set of sub-trajectories can potentially include various segments where either no constraint is active, or the maximum acceleration constraint is active, or the maximum velocity constraint is active. Each segment corresponds to conditions, which takes the form of smooth nonlinear ordinary differential equations (ODE) and nonlinear algebraic equations (NAE). The ODEs describe the dynamics of the motor state and the corresponding costate, and the NAEs define the optimal control input as a function of state x(t) and costate λ(t), terminal conditions of the ODEs or segments, and conditions to determine the entry time of each segment.
All segments of the sub-trajectory are combined by the terminal conditions of each segment or ODEs. At the entry point of a segment, where the maximum acceleration constraint is active over the kth segment, the terminal conditions are the continuity of state and costate are
x(tk+)=x(tk−)
λ(tk+)=λ(tk−)
where tk is the entry time of the kth segment. At the entry point of the segment where the maximum velocity constraint is active over the kth segment, the terminal conditions are the continuity of state and the jump condition of the costate, are
There are conditions to determine the entry time of each segment. Due to the convexity of the first Hamiltonian and the admissible control domain, an optimal control which minimizes the first Hamiltonian is uniquely defined. Thus conditions on the entry time of each segment is the continuity of control input according to
u(tk+)=u(tk−).
The Lagrange multiplier π is defined by x2(tk)=νmax. Finally the number of ODEs and unknowns is equal to that of terminal conditions, entry conditions, jump condition, and initial or final state conditions. Thus, the first set of conditions is complete.
The second 408 and the third 409 set of conditions are similarly determined. However, to combine all three sets of conditions, terminal conditions of each sub-trajectory are required. The terminal conditions can be determined by applying the variation of calculus technique, and take the form of the continuity of the state and costate at the terminal points. Similarly, the conditions on the entry time of each sub-trajectory are derived as the continuity of control.
Thus, the set of conditions 410 that the entire optimal trajectory 105 has to satisfy includes conditions piecewisely defined over corresponding the first 404, the second 405 and the third 406 set of sub-trajectories, combined with the terminal and entry conditions of each set of sub-trajectories.
The set of conditions includes ODEs which define the dynamics of state x(t) and costate λ(t) of the motor, and NAEs which define the Lagrange multiplier π, Lagrange multipliers μ, ν as functions of the state x, the costate λ and the control input u, an unconstrained optimal control input as a function of state x and costate λ of the motor, a constrained optimal control input as a function of state x, the terminal conditions of each segment, the terminal conditions of each sub-trajectory, the conditions on the entry time of each segment, conditions on the entry time of each sub-trajectory, and the initial and the final state of the optimal trajectory. All these conditions forms the set of conditions 410 which can be summarized according to
where tk is the entry time of the kth segment of the energy-optimal trajectory, t0=0, tm=T, m is the number of segments, g,h are nonlinear functions corresponding to the NAEs, and the x0, xf are the initial and final states of the trajectory. Thus the conditions are formulated as a multi-point boundary value problem, having boundary conditions g=0, h=0 included in the nonlinear algebraic equations.
Some embodiments of the invention determine a structure of the trajectory 105, as shown in
Typically, each sub-trajectory includes at least one segment if no constraint is active or at least two segments if any constraint is active. The trajectory 105 is piecewisely continuous, and includes segments over which the trajectory is smooth. Some embodiments of the invention identify types of segments, referred herein as arcs, which the trajectory can include. Specifically, according to one embodiment, the trajectory can include, but is not limited to, one or combination of an unconstrained positive control arc (U+), an unconstrained negative control and positive power arc (U−), a positive acceleration constrained arc (A+) a negative acceleration constrained and positive power arc (A−), a maximum velocity constraint arc (V+), a zero control and zero power arc (UPU), an unconstrained negative control and zero power arc (UP−), a negative acceleration and negative power arc (AP−).
The energy-optimal control input u(t) over each arc is
It can be shown that the Hamiltonians H11, H12, H2 and the energy consumption P(x,u) are convex functions of the control input u, thus the energy optimal control can be uniquely solved.
Due to the nonlinearity of the energy consumption P(x,u), the analytical forms of the energy-optimal control is difficult to obtained. Approximation solutions of Equation (2) can be obtained by numerical computation or by simplifying P(x,u) to obtain closed-form solutions. As an example, treating γ=1 yields an energy-efficient control as follows
Further approximation can be taken to reduce the computation load to generate an energy-efficient control trajectory. For instance, an energy-efficient trajectory can be generated by minimizing the following cost functional
E=∫0TP(x(t),u(t))dt.
The structure of the trajectory describes the order of arcs. A general structure, which is the case an energy-optimal control trajectory includes all types of arcs, is shown in
The general structure of the energy-optimal control trajectory includes nine arcs, and begins with a positive acceleration constrained arc AB 510 or 510′, followed by an unconstrained positive control arc BC 515 or 515′, a velocity constrained arc CD 520 or 520′, an unconstrained positive control arc DE 525 or 525′, a zero control and negative power arc EF 530 or 530′, a negative acceleration and negative power arc GH 540 or 540′, a negative control and zero power arc HI 545 or 545′, an unconstrained negative control and positive power arc IJ 550 or 550′, a negative acceleration and positive power arc JK 555 or 555′. Other structures are can be similarly determined for those skilled in the art.
Some embodiments of the invention define piecewise ODEs and NAEs based on the set of conditions 410. The combination of the ODEs and the NAEs well-defines a multi-point boundary value problem (MBVP) that can be solved iteratively as shown in
The multiple shooting generally requires the knowledge of the structure of the energy efficient control trajectory. In one embodiment, the parameters 345 include state and costate trajectories, the entry time of each segment, and Lagrange multiplier π. In alternative embodiment, the parameters 345 include the terminal states and costates of each segment, the time of switch, and the Lagrange multiplier π. Given the parameters, the state and costate trajectories are generated by integrating the piecewise ODEs. Also, the gradient of boundary conditions with respect to the parameters is determined by integrating sensitivity equations.
As an example, the sensitivity equation describing the variations of the final state of the motor with respect to variations of the initial costate trajectory, and Lagrange multiplier is
If the boundary conditions are satisfied, then the generated state trajectory is optimal, otherwise, the computed gradient is used to update 370 the parameters.
Some embodiments recognize that the structure of the trajectory is difficult to determine. To circumvent the determination of structure, one embodiment uses a shooting method which generates the trajectory by solving the MBVP as a two-point boundary value problem. In this embodiment the parameters 345 includes an initial value of costate λ0, and/or a final value of costate λ
In the embodiment, the constraints 700 include initial and final states of the motor, and the tracking time. The constraints are the input to the trajectory generator. Initial values of the parameters λ0,λf 711 are generated 701 based on the set of conditions which the energy-optimal trajectory has to satisfy. For example, according to the conditions derived) from Hamiltonian, λ(t0) has to be less than zero, λ1(tf)=λ1(t0), and λ2(tf) has to be non-negative.
Referring back to
The residue and the gradient of boundary conditions are determined 704 with respect to previously determined parameters λ0,λf and the exit conditions are evaluated 705. For example, if the residue and/or the gradient meet a tolerance of error, the energy-efficient trajectory is outputted 706. In one embodiment, if the residue and/or the gradient do not meet the tolerance, but the iteration limit is reached, the current trajectory or a time-optimal trajectory is outputted and failure flag is set. If exit conditions are not met, both the residue and gradient of boundary conditions are used to update 707 the parameters 711 and the steps of the methods are repeated.
Direct Search Over Preliminary Trajectories
If the gradient is less 936 than a threshold 960, the trajectory 915 is outputted as the energy optimal trajectory 105. Otherwise 935, the preliminary trajectory is updated 950, and the gradient is determined again for the new preliminary trajectory. These steps of the method are repeated iteratively until the optimal trajectory is determined 930 or the maximum number of iterations is reached. In one embodiment, the threshold 960 equals zero.
In fact, the embodiments solve the following infinite dimensional optimization problem
subject to the constraints 219, which can include the dynamic and the static constraints, the initial and the final state conditions, and the tracking time.
The discretization 1020 can be performed by a number of methods. For example, one embodiment partitions the tracking time [0,T] into N equally distributed subintervals:
0=t0<t1< . . . <tN=T.
Given the sample time δT=T/N, the control, state, and the dynamics of the motor are discretized as follows
u:u(0), . . . ,u(N−1),
x:x(0), . . . ,x(N),
Ad=eAT, Bd=∫0Te(T−τ)Bdτ, Cd=∫0TeA(T−τ)Cdτ,
x(k+1)=Adx(k)+Bdu(k)+Cd(k).
The resultant nonlinear optimization problem is formulated as follows
The generation of preliminary state and control trajectories for the finite dimensional optimization problem can be achieved by a number of different methods. For example, by solving the energy optimal trajectory for the quadratic cost function case, wherein the cost function is the integral of the energy consumption P(x(t),u(t)).
Because the cost function is convex, and the constraint is linear, the global minimum is guaranteed and, thus, the preliminary trajectory for the quadratic cost function problem can be selected arbitrarily. Given the preliminary trajectory, e.g., the state and/or the control trajectories, various nonlinear programming solvers are available to solve the aforementioned finite dimensional optimization problem.
One alternative embodiment uses the state and costate trajectories as decision variables, and solves the optimization problem
subject to the constrains, i.e., the static and the dynamic constraints, the terminal conditions, the entry conditions of each segment and the sub-trajectory formulated as the NAEs. Gradient of the cost function with respect to state and costate trajectories are computed by the sensitivity equations.
Discretizing the cost function, the constraints, and the sensitivity equations produces a finite dimensional optimization problem. The gradient is obtained from the discretized sensitivity equations. One embodiment uses Newton's method to iteratively update the state and costate trajectories.
Effect of the Invention
Embodiments of the invention makes an effective trade off between the energy consumption and tracking time of an operation of the motion control system and provide an energy efficient motion control system and a method for generating energy efficient trajectory of a motion of a motor of the motion control system. Some embodiments provide such trade off that considers various constraints of the motion control system including velocity, acceleration, and current constraints.
The embodiments can be implemented in any of numerous ways. For example, the embodiments may be implemented using hardware, software or a combination thereof. When implemented in software, the software code can be executed on any suitable processor or collection of processors, whether provided in a single computer or distributed among multiple computers. Such processors may be implemented as integrated circuits, with one or more processors in an integrated circuit component. Though, a processor may be implemented using circuitry in any suitable format.
Also, the various methods or processes outlined herein may be coded as software that is executable on one or more processors that employ any one of a variety of operating systems or platforms. Additionally, such software may be written using any of a number of suitable programming languages and/or programming or scripting tools, and also may be compiled as executable machine language code or intermediate code that is executed on a framework or virtual machine.
In this respect, the invention may be embodied as a computer readable storage medium or multiple computer readable media, e.g., a computer memory or compact discs (CD), optical discs, digital video disks (DVD). Alternatively or additionally, the invention may be embodied as a computer readable medium other than a computer-readable storage medium, such as a propagating signal.
The terms “program” or “software” are used herein in a generic sense to refer to any type of computer code or set of computer-executable instructions that can be employed to program a computer or other processor to implement various aspects of the present invention as discussed above. Computer-executable instructions may be in many forms, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.
Also, the embodiments of the invention may be embodied as a method, of which an example has been provided. The acts performed as part of the method may be ordered in any suitable way. Accordingly, embodiments may be constructed in which acts are performed in an order different than illustrated, which may include performing some acts simultaneously, even though shown as sequential acts in illustrative embodiments.
Use of ordinal terms such as “first,” “second,” in the claims to modify a claim element does not by itself connote any priority, precedence, or order of one claim element over another or the temporal order in which acts of a method are performed, but are used merely as labels to distinguish one claim element having a certain name from another element having a same name (but for use of the ordinal term) to distinguish the claim elements.
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5301101 | MacArthur et al. | Apr 1994 | A |
6847854 | Discenzo | Jan 2005 | B2 |
7606624 | Cullen | Oct 2009 | B2 |
7701156 | Okamura | Apr 2010 | B2 |
8489262 | Yamasaki | Jul 2013 | B2 |
8525468 | Winterhalter et al. | Sep 2013 | B2 |
Number | Date | Country |
---|---|---|
02074501 | Sep 2002 | WO |
Entry |
---|
Nilsson & Riedel, “Electric Circuit”, fifth edition, Addison-Wesley Publishing Company, New York, 1996. ISBN 0-201-55707-x. pp. 4 and 5, under “Circuit Theory”, it defines the “model” as an electric circuit. |
Number | Date | Country | |
---|---|---|---|
20130119916 A1 | May 2013 | US |