SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2022_0528 · IJCAI · 2022

Multi-Constraint Deep Reinforcement Learning for Smooth Action Control

Ying He, Weike Pan, Zhong Ming, Guangyuan Zou, F Yu, Longquan Chen

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 4 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/ijcai2022_0528.json · badge: /api/ran/ijcai2022_0528.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
GyChou/mcppoElegantRLforCarla canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
bt Ran
ran on a synthesized input
GyChou/mcppoElegantRLforCarla/ray_elegantrl/agent.py
code served (permissive licence) · get_code("8a172de9485e8562")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function bt(m) calls m.transpose(dim0=-2, dim1=-1)
# This means m must be a tensor (or have a transpose method)
# The transpose swaps the last two dimensions

# Create a small tensor with distinct dimensions for clarity
# Shape: (2, 4, 3, 5) - batch=2, then 4, 3, 5 for distinct probing
m = torch.randn(2, 4, 3, 5)

ARGS = {
    "m": m
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 5, 3) — shape (2, 4, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calc Ran
ran on a synthesized input
GyChou/mcppoElegantRLforCarla/ray_elegantrl/evaluate.py
code served (permissive licence) · get_code("1c969fcc5ea3afe8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function calc takes a numpy array as input
# It checks if the array is multidimensional (len(shape) > 1)
# If so, it sums along axis 1
# Then it computes statistics: mean, std, max, min, median

# Create a sample numpy array
# Using a 2D array to test the axis=1 sum operation
np_array = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

ARGS = {
    'np_array': np_array
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_speed Ran
ran, honoured the contract we drafted
GyChou/mcppoElegantRLforCarla/gym_carla_feature/start_env/misc.py
code served (permissive licence) · get_code("917328ec2ebf6f4d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

class Velocity:
    def __init__(self, x, y, z):
        self.x = x
        self.y = y
        self.z = z

class Vehicle:
    def __init__(self, velocity):
        self.velocity = velocity
    
    def get_velocity(self):
        return self.velocity

velocity = Velocity(x=1.0, y=2.0, z=3.0)
vehicle = Vehicle(velocity=velocity)

ARGS = {
    "vehicle": vehicle
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_within_distance Ran
ran, violated the contract we drafted
GyChou/mcppoElegantRLforCarla/gym_carla_feature/start_env/misc.py
code served (permissive licence) · get_code("ac46badabc463421")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np


class Location:
    """Simple location class with x and y attributes."""
    def __init__(self, x, y):
        self.x = x
        self.y = y


# Create test locations
target_location = Location(x=5.0, y=3.0)
current_location = Location(x=0.0, y=0.0)

# Orientation in degrees (0 = facing right, 90 = facing up, etc.)
orientation = 30.0

# Maximum distance threshold
max_distance = 10.0

# Angle thresholds in degrees
d_angle_th_up = 45.0
d_angle_th_low = 0.0

ARGS = {
    "target_location": target_location,
    "current_location": current_location,
    "orientation": orientation,
    "max_distance": max_distance,
    "d_angle_th_up": d_angle_th_up,
    "d_angle_th_low": d_angle_th_low,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_within_distance_ahead Ran
ran on a synthesized input
GyChou/mcppoElegantRLforCarla/gym_carla_feature/start_env/misc.py
code served (permissive licence) · get_code("4cb97310812ee5cb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np

class Location:
    def __init__(self, x, y, z=0.0):
        self.x = x
        self.y = y
        self.z = z

class Vector3D:
    def __init__(self, x, y, z=0.0):
        self.x = x
        self.y = y
        self.z = z

class Transform:
    def __init__(self, location_x, location_y, forward_x, forward_y):
        self.location = Location(location_x, location_y)
        self._forward_vector = Vector3D(forward_x, forward_y)
    
    def get_forward_vector(self):
        return self._forward_vector

# Create test transforms
target_transform = Transform(5.0, 0.0, 1.0, 0.0)
current_transform = Transform(0.0, 0.0, 1.0, 0.0)
max_distance = 10.0

ARGS = {
    "target_transform": target_transform,
    "current_transform": current_transform,
    "max_distance": max_distance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rescale Ran
ran on a synthesized input
GyChou/mcppoElegantRLforCarla/ray_elegantrl/agent.py
code served (permissive licence) · get_code("63ba42408a6fe0d7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a single parameter 'x' which should be a torch tensor
# It applies mathematical operations: sign, sqrt, abs, addition, multiplication
# So x should be a numeric tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_env Not yet run
unverified (harvested, no recorded run)
GyChou/mcppoElegantRLforCarla/ray_elegantrl/interaction.py
code served (permissive licence) · get_code("b917f33e17c81491")
How it ran

no invocation recorded.

ni_rescale Not yet run
unverified (harvested, no recorded run)
GyChou/mcppoElegantRLforCarla/ray_elegantrl/agent.py
code served (permissive licence) · get_code("3de72c69e6064478")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_within_distance 3 other papers
1 dated earlier, 1 later, 1 same year, order not determinable
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2211.09817 (2022-11)
On the Effect of Pre-training for Transformer in Different Modality on Offline Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
bt 1 other paper
1 dated earlier
2007.02622 (2020-07)
Integrating Distributed Architectures in Highly Modular RL Libraries
get_speed 1 other paper
1 dated earlier
2003.12464 (2020-03)
End-to-end Autonomous Driving Perception with Sequential Latent Representation Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Deep reinforcement learning (DRL) has been studied in a variety of challenging decision-making tasks, e.g., autonomous driving. However, DRL typically suffers from the action shaking problem, which means that agents can select actions with big difference even though states only slightly differ. One of the crucial reasons for this issue is the inappropriate design of the reward in DRL. In this paper, to address this issue, we propose a novel way to incorporate the smoothness of actions in the reward. Specifically, we introduce sub-rewards and add multiple constraints related to these sub-rewards. In addition, we propose a multi-constraint proximal policy optimization (MCPPO) method to solve the multiconstraint DRL problem. Extensive simulation results show that the proposed MCPPO method has better action smoothness compared with the traditional proportional-integral-differential (PID) and mainstream DRL algorithms. The video is available at https://youtu.be/F2jpaSm7YOg.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("ijcai2022_0528")
get_code_for_paper("ijcai2022_0528")
have("ijcai2022_0528")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/ijcai2022_0528.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/ijcai2022_0528.svg)](https://syntology.ai/paper/ijcai2022_0528)

Connect an agent — have() is free.