miller_ocp.py
def _print_bounds(self):
        """
        Prints the bounds of the states
        """
        max = []
        min = []
        for nlp in self.ocp.nlp:
            max.append(np.array(nlp.x_bounds.max.tolist()))
            min.append(np.array(nlp.x_bounds.min.tolist()))

        s = ""
        for i, nlp in enumerate(self.ocp.nlp):
            s += f"Phase {i}"
            s += 14 * " " + 2 * 21 * " "
        print(s)

        s = ""
        for i, nlp in enumerate(self.ocp.nlp):
            s += f"Beginning"
            s += 12 * " "
            s += f"Middle"
            s += 15 * " "
            s += f"End"
            s += 18 * " "
        print(s)

        for i in range(nlp.x_bounds.shape[0]):
            s = ""
            coef = 180 / np.pi if i > 2 else 1
            for p, nlp in enumerate(self.ocp.nlp):
                for j in range(len(min[p][i])):
                    str_interval = f"[{np.round(min[p][i][j] * coef,3)}, {np.round(max[p][i][j] * coef,3)}]"
                    str_interval += (21 - str_interval.__len__()) * " "
                    s += str_interval
            print(s)

        Prints the bounds of the states
        
Prints the bounds of the states
Prints the bounds of the states
def _print_bounds(self):
        max = []
        min = []
        for nlp in self.ocp.nlp:
            max.append(np.array(nlp.x_bounds.max.tolist()))
            min.append(np.array(nlp.x_bounds.min.tolist()))
        s = ""
        for i, nlp in enumerate(self.ocp.nlp):
            s += f"Phase {i}"
            s += 14 * " " + 2 * 21 * " "
        print(s)
        s = ""
        for i, nlp in enumerate(self.ocp.nlp):
            s += f"Beginning"
            s += 12 * " "
            s += f"Middle"
            s += 15 * " "
            s += f"End"
            s += 18 * " "
        print(s)
        for i in range(nlp.x_bounds.shape[0]):
            s = ""
            coef = 180 / np.pi if i > 2 else 1
            for p, nlp in enumerate(self.ocp.nlp):
                for j in range(len(min[p][i])):
                    str_interval = f"[{np.round(min[p][i][j] * coef,3)}, {np.round(max[p][i][j] * coef,3)}]"
                    str_interval += (21 - str_interval.__len__()) * " "
                    s += str_interval
            print(s)
def _print_bounds ( self ) : max = [ ] min = [ ] for nlp in self . ocp . nlp : max . append ( np . array ( nlp . x_bounds . max . tolist ( ) ) ) min . append ( np . array ( nlp . x_bounds . min . tolist ( ) ) ) s = "" for i , nlp in enumerate ( self . ocp . nlp ) : s += f"Phase {i}" s += 14 * " " + 2 * 21 * " " print ( s ) s = "" for i , nlp in enumerate ( self . ocp . nlp ) : s += f"Beginning" s += 12 * " " s += f"Middle" s += 15 * " " s += f"End" s += 18 * " " print ( s ) for i in range ( nlp . x_bounds . shape [ 0 ] ) : s = "" coef = 180 / np . pi if i > 2 else 1 for p , nlp in enumerate ( self . ocp . nlp ) : for j in range ( len ( min [ p ] [ i ] ) ) : str_interval = f"[{np.round(min[p][i][j] * coef,3)}, {np.round(max[p][i][j] * coef,3)}]" str_interval += ( 21 - str_interval . __len__ ( ) ) * " " s += str_interval print ( s )
Prints the bounds of the states
Prints the bounds of the states
"""
        Prints the bounds of the states
        """
self